diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-05 15:13:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-05 15:13:55 +0000 |
| commit | 52b43151c62f52cff557f126fcd7062559b09e0e (patch) | |
| tree | 0f7b8ec924b993a9770bfe6331971add42e6ce3f /src/File.h | |
| parent | bcbadb3b6b5eb18f5d17797a22977b6d44c85a81 (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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
