diff options
Diffstat (limited to 'build2/filesystem')
-rw-r--r-- | build2/filesystem | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build2/filesystem b/build2/filesystem index 325d28d..6a730c5 100644 --- a/build2/filesystem +++ b/build2/filesystem @@ -83,8 +83,8 @@ 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. + // Check for a file, directory or filesystem entry existence. Print the + // diagnostics and fail on system error. // bool exists (const path&, bool follow_symlinks = true); @@ -93,6 +93,12 @@ namespace build2 exists (const dir_path&); bool + entry_exists (const path&, bool follow_symlinks = false); + + // Check for a directory emptiness. Print the diagnostics and fail on system + // error. + // + bool empty (const dir_path&); } |