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.cxx | |
parent | 182d743d15810d2a8393ed7fa5d565cf3a394694 (diff) |
Add ignore_error parameter for functions that check file system entry existence
Diffstat (limited to 'build2/filesystem.cxx')
-rw-r--r-- | build2/filesystem.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/filesystem.cxx b/build2/filesystem.cxx index eefaf99..58e3037 100644 --- a/build2/filesystem.cxx +++ b/build2/filesystem.cxx @@ -112,11 +112,11 @@ namespace build2 } bool - exists (const path& f, bool fs) + exists (const path& f, bool fs, bool ie) { try { - return file_exists (f, fs); + return file_exists (f, fs, ie); } catch (const system_error& e) { @@ -125,11 +125,11 @@ namespace build2 } bool - exists (const dir_path& d) + exists (const dir_path& d, bool ie) { try { - return dir_exists (d); + return dir_exists (d, ie); } catch (const system_error& e) { @@ -138,11 +138,11 @@ namespace build2 } bool - entry_exists (const path& p, bool fs) + entry_exists (const path& p, bool fs, bool ie) { try { - return butl::entry_exists (p, fs); + return butl::entry_exists (p, fs, ie); } catch (const system_error& e) { |