mirror of https://github.com/aria2/aria2
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added exists() * src/FileEntry.cc * src/FileEntry.hpull/1/head
parent
90ca1be5fe
commit
3a814ddf5b
|
@ -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>
|
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Added missing prefix dir.
|
Added missing prefix dir.
|
||||||
|
|
|
@ -69,4 +69,9 @@ bool FileEntry::operator<(const FileEntry& fileEntry) const
|
||||||
return offset < fileEntry.offset;
|
return offset < fileEntry.offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FileEntry::exists() const
|
||||||
|
{
|
||||||
|
return File(getPath()).exists();
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace aria2
|
} // namespace aria2
|
||||||
|
|
|
@ -99,6 +99,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator<(const FileEntry& fileEntry) const;
|
bool operator<(const FileEntry& fileEntry) const;
|
||||||
|
|
||||||
|
bool exists() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef SharedHandle<FileEntry> FileEntryHandle;
|
typedef SharedHandle<FileEntry> FileEntryHandle;
|
||||||
|
|
Loading…
Reference in New Issue