diff options
Diffstat (limited to 'build2/filesystem')
-rw-r--r-- | build2/filesystem | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/build2/filesystem b/build2/filesystem index 1dcf8bd..1b03c0e 100644 --- a/build2/filesystem +++ b/build2/filesystem @@ -82,6 +82,15 @@ namespace build2 // fs_status<rmdir_status> rmdir_r (const dir_path&, bool dir = true, uint16_t verbosity = 1); + + // Check for a file or directory existence. Print the diagnostics and fail on + // system error. + // + bool + exists (const path&, bool follow_symlinks = true); + + bool + exists (const dir_path&); } #include <build2/filesystem.txx> |