From b6f166c4ed98f94bdd2cc82885d61173a101abfd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 26 Jul 2016 15:12:54 +0200 Subject: Redesign path to store trailing slash for directories --- butl/filesystem.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'butl/filesystem.cxx') 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 (ep), true, ignore_error); + rmdir_r (path_cast (move (ep)), true, ignore_error); else try_rmfile (ep, ignore_error); } -- cgit v1.1