aboutsummaryrefslogtreecommitdiff
path: root/butl/filesystem.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'butl/filesystem.ixx')
-rw-r--r--butl/filesystem.ixx6
1 files changed, 6 insertions, 0 deletions
diff --git a/butl/filesystem.ixx b/butl/filesystem.ixx
index af1125e..6062c38 100644
--- a/butl/filesystem.ixx
+++ b/butl/filesystem.ixx
@@ -4,6 +4,12 @@
namespace butl
{
+ inline bool
+ dir_empty (const dir_path& d)
+ {
+ return dir_iterator (d) == dir_iterator ();
+ }
+
inline rmdir_status
try_rmdir_r (const dir_path& p, bool ignore_error)
{