diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-01-15 16:33:58 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2017-01-15 16:33:58 +0900 |
| commit | 744a5a550df748dcbbbd2587bc7c84381f52ed0c (patch) | |
| tree | c7569317e4b16b9deac443b0c673dcd846087d59 /src/File.h | |
| parent | c1a0b335159a6d002f4cc35f0b66397af0f39759 (diff) | |
Better error message when local file status cannot be retrieved
Diffstat (limited to 'src/File.h')
| -rw-r--r-- | src/File.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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(); |
