summaryrefslogtreecommitdiff
path: root/src/File.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-01-15 16:33:58 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2017-01-15 16:33:58 +0900
commit744a5a550df748dcbbbd2587bc7c84381f52ed0c (patch)
treec7569317e4b16b9deac443b0c673dcd846087d59 /src/File.h
parentc1a0b335159a6d002f4cc35f0b66397af0f39759 (diff)
Better error message when local file status cannot be retrieved
Diffstat (limited to 'src/File.h')
-rw-r--r--src/File.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/File.h b/src/File.h
index 1e659022..6d304640 100644
--- a/src/File.h
+++ b/src/File.h
@@ -71,6 +71,13 @@ public:
bool exists();
/**
+ * Tests whether the file or directory denoted by name exists. If
+ * file does not exist, or file status could not be retrieved, this
+ * function stores error message to |err|.
+ */
+ bool exists(std::string& err);
+
+ /**
* Tests whether the file denoted by name is a regular file.
*/
bool isFile();