diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-04 15:25:10 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-10-04 15:25:10 +0300 |
commit | f2e26b666ab63c8c4ea1be0df4e64530147470b6 (patch) | |
tree | 67159a861f630acec1871594a6ee2169a69e4a83 /build2/filesystem.hxx | |
parent | 182d743d15810d2a8393ed7fa5d565cf3a394694 (diff) |
Add ignore_error parameter for functions that check file system entry existence
Diffstat (limited to 'build2/filesystem.hxx')
-rw-r--r-- | build2/filesystem.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/build2/filesystem.hxx b/build2/filesystem.hxx index 8d1a7f0..fe4473c 100644 --- a/build2/filesystem.hxx +++ b/build2/filesystem.hxx @@ -95,16 +95,18 @@ namespace build2 rmdir_r (const dir_path&, bool dir = true, uint16_t verbosity = 1); // Check for a file, directory or filesystem entry existence. Print the - // diagnostics and fail on system error. + // diagnostics and fail on system error, unless ignore_error is true. // bool - exists (const path&, bool follow_symlinks = true); + exists (const path&, bool follow_symlinks = true, bool ignore_error = false); bool - exists (const dir_path&); + exists (const dir_path&, bool ignore_error = false); bool - entry_exists (const path&, bool follow_symlinks = false); + entry_exists (const path&, + bool follow_symlinks = false, + bool ignore_error = false); // Check for a directory emptiness. Print the diagnostics and fail on system // error. |