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.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build2/filesystem.hxx') 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. -- cgit v1.1