summaryrefslogtreecommitdiff
path: root/src/FileEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-11 15:37:40 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-11 15:37:40 +0000
commit3a814ddf5bbdce15c19e746cbe842c0b15de6978 (patch)
treeeede10fc6097a96dbef292128f23163d14c91518 /src/FileEntry.cc
parent90ca1be5fe0940fd204aa4c444a96dcef942d613 (diff)
2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added exists() * src/FileEntry.cc * src/FileEntry.h
Diffstat (limited to 'src/FileEntry.cc')
-rw-r--r--src/FileEntry.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FileEntry.cc b/src/FileEntry.cc
index 96f68c5e..8abc1a5d 100644
--- a/src/FileEntry.cc
+++ b/src/FileEntry.cc
@@ -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