aboutsummaryrefslogtreecommitdiff
path: root/butl/filesystem.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-26 15:12:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-28 13:51:29 +0200
commitb6f166c4ed98f94bdd2cc82885d61173a101abfd (patch)
treec6b75cf2efc98624760050173219e977f8620608 /butl/filesystem.cxx
parent098559ca3552ebd8f80a6d28254f4fa58913b751 (diff)
Redesign path to store trailing slash for directories
Diffstat (limited to 'butl/filesystem.cxx')
-rw-r--r--butl/filesystem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/butl/filesystem.cxx b/butl/filesystem.cxx
index cabe306..aa9319f 100644
--- a/butl/filesystem.cxx
+++ b/butl/filesystem.cxx
@@ -146,7 +146,7 @@ namespace butl
path ep (p / de.path ()); //@@ Would be good to reuse the buffer.
if (de.ltype () == entry_type::directory)
- rmdir_r (path_cast<dir_path> (ep), true, ignore_error);
+ rmdir_r (path_cast<dir_path> (move (ep)), true, ignore_error);
else
try_rmfile (ep, ignore_error);
}