summaryrefslogtreecommitdiff
path: root/src/FileEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-09 15:10:26 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-09 15:10:26 +0000
commite2704bd823e44000b81e42fc05b58b8d0bc9ddda (patch)
tree4f9a5a0299521877e03bff090bdbc80ba43486c3 /src/FileEntry.cc
parented6851636f38a1959186b92b1c619c4706ad4cca (diff)
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
FileEntry::getPath() contains store(top level) directory to simplify path handling operation. In the previous implementation, store directory is concatenated to FileEntry::getPath() in DownloadContext. * src/BtDependency.cc * src/BtPostDownloadHandler.cc * src/CopyDiskAdaptor.cc * src/DefaultBtContext.cc * src/DirectDiskAdaptor.cc * src/FileEntry.cc * src/FileEntry.h * src/FtpNegotiationCommand.cc * src/HttpResponse.cc * src/HttpResponseCommand.cc * src/Metalink2RequestGroup.cc * src/MultiDiskAdaptor.cc * src/MultiDiskAdaptor.h * src/MultiFileAllocationIterator.cc * src/RequestGroup.cc * src/SingleFileDownloadContext.cc * src/SingleFileDownloadContext.h * src/download_helper.cc * test/BtDependencyTest.cc * test/CopyDiskAdaptorTest.cc * test/DefaultBtContextTest.cc * test/DefaultBtProgressInfoFileTest.cc * test/DirectDiskAdaptorTest.cc * test/DownloadHelperTest.cc * test/FileEntryTest.cc * test/MultiDiskAdaptorTest.cc * test/MultiFileAllocationIteratorTest.cc * test/RequestGroupTest.cc * test/SingleFileDownloadContextTest.cc
Diffstat (limited to 'src/FileEntry.cc')
-rw-r--r--src/FileEntry.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc
index c10ea022..96f68c5e 100644
--- a/src/FileEntry.cc
+++ b/src/FileEntry.cc
@@ -47,9 +47,9 @@ FileEntry::FileEntry(const std::string& path,
FileEntry::~FileEntry() {}
-void FileEntry::setupDir(const std::string& parentDir)
+void FileEntry::setupDir()
{
- Util::mkdirs(File(parentDir+"/"+path).getDirname());
+ Util::mkdirs(File(path).getDirname());
}
FileEntry& FileEntry::operator=(const FileEntry& entry)