From 093d031ec45b74bb5c880c3ce3ca7f181c600e9f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 May 2018 14:26:09 +0300 Subject: Pass ignore_dangling flag to dir_iterator() ctor --- build2/test/script/builtin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build2/test/script/builtin.cxx') diff --git a/build2/test/script/builtin.cxx b/build2/test/script/builtin.cxx index 91d5bf2..0a238bb 100644 --- a/build2/test/script/builtin.cxx +++ b/build2/test/script/builtin.cxx @@ -306,7 +306,8 @@ namespace build2 if (cleanup) sp.clean ({cleanup_type::always, to}, true); - for (const auto& de: dir_iterator (from)) // Can throw. + for (const auto& de: dir_iterator (from, + false /* ignore_dangling */)) { path f (from / de.path ()); path t (to / de.path ()); -- cgit v1.1