From f2e26b666ab63c8c4ea1be0df4e64530147470b6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 4 Oct 2017 15:25:10 +0300 Subject: Add ignore_error parameter for functions that check file system entry existence --- build2/filesystem.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/filesystem.cxx') 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) { -- cgit v1.1