2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Added exists()
	* src/FileEntry.cc
	* src/FileEntry.h
pull/1/head
Tatsuhiro Tsujikawa 2009-03-11 15:37:40 +00:00
parent 90ca1be5fe
commit 3a814ddf5b
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added exists()
* src/FileEntry.cc
* src/FileEntry.h
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added missing prefix dir.

View File

@ -69,4 +69,9 @@ bool FileEntry::operator<(const FileEntry& fileEntry) const
return offset < fileEntry.offset;
}
bool FileEntry::exists() const
{
return File(getPath()).exists();
}
} // namespace aria2

View File

@ -99,6 +99,8 @@ public:
}
bool operator<(const FileEntry& fileEntry) const;
bool exists() const;
};
typedef SharedHandle<FileEntry> FileEntryHandle;