From 748eab79085d7c8a3b3da90316a90a892db884ae Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 22 Jun 2016 23:18:56 +0300 Subject: Add ignore_error parameter to rmdir_r(), fix try_rmdir_r() --- butl/filesystem | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'butl/filesystem') 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 -- cgit v1.1