summaryrefslogtreecommitdiff
path: root/src/File.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-05 15:13:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-11-05 15:13:55 +0000
commit52b43151c62f52cff557f126fcd7062559b09e0e (patch)
tree0f7b8ec924b993a9770bfe6331971add42e6ce3f /src/File.h
parentbcbadb3b6b5eb18f5d17797a22977b6d44c85a81 (diff)
2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Now a file is stored in the directory specified in .metalnk file (file[@name]). * src/Metalink2RequestGroup.cc Create the directory structure when opening the file if it doesn't exist. * src/AbstractDiskWriter.cc * src/Util.{h, cc} * src/File.h * test/UtilTest.cc Removed file name comparison * src/Metalink2RequestGroup.cc * src/HttpResponseCommand.cc Rewritten using Util::mkdirs() * src/FileEntry.cc (setupDir) * test/FileEntryTest.cc Updated doc * src/SingleFileDownloadContext.h
Diffstat (limited to 'src/File.h')
-rw-r--r--src/File.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/File.h b/src/File.h
index 36b93093..cecf66d5 100644
--- a/src/File.h
+++ b/src/File.h
@@ -95,6 +95,11 @@ public:
string getDirname() const;
+ const string& getPath() const
+ {
+ return name;
+ }
+
static bool isDir(const string& filename);
bool renameTo(const string& dest);