diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-22 23:18:56 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-23 15:13:12 +0300 |
commit | 748eab79085d7c8a3b3da90316a90a892db884ae (patch) | |
tree | 8bb0b2c1e7fba762530bd0e23320cc5a667ca249 /butl/filesystem | |
parent | dbd6d3ea474a8fbc6b2a8cbfeec34dbbc58f0553 (diff) |
Add ignore_error parameter to rmdir_r(), fix try_rmdir_r()
Diffstat (limited to 'butl/filesystem')
-rw-r--r-- | butl/filesystem | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/butl/filesystem b/butl/filesystem index 943a346..ab39f36 100644 --- a/butl/filesystem +++ b/butl/filesystem @@ -73,11 +73,11 @@ namespace butl try_rmdir_r (const dir_path&, bool ignore_error = false); // As above but throws rather than returns not_exist if the directory - // does not exist, so check before calling. If the second argument is - // false, the the directory itself is not removed. + // does not exist (unless ignore_error is true), so check before calling. + // If the second argument is false, then the directory itself is not removed. // void - rmdir_r (const dir_path&, bool dir = true); + rmdir_r (const dir_path&, bool dir = true, bool ignore_error = false); // Try to remove the file (or symlinks) returning not_exist if // it does not exist. Unless ignore_error is true, all other |