aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-05-17 20:09:27 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-05-17 20:09:27 +0300
commit03cf736329b821bf90edcf8c0c1add61008ef858 (patch)
tree79465b0d1d23bfe51c7895fa4c0b4639e31d102f
parent3908754edadb9afbe0f977788cc34456cbdffc5a (diff)
Pass ignore_dangling flag to dir_iterator() ctor
-rw-r--r--bpkg/rep-create.cxx2
-rw-r--r--bpkg/rep-remove.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx
index 34aeb2c..73fc758 100644
--- a/bpkg/rep-create.cxx
+++ b/bpkg/rep-create.cxx
@@ -60,7 +60,7 @@ namespace bpkg
{
tracer trace ("collect");
- for (const dir_entry& de: dir_iterator (d)) // system_error
+ for (const dir_entry& de: dir_iterator (d, false /* ignore_dangling */))
{
path p (de.path ());
diff --git a/bpkg/rep-remove.cxx b/bpkg/rep-remove.cxx
index 056883d..36a6892 100644
--- a/bpkg/rep-remove.cxx
+++ b/bpkg/rep-remove.cxx
@@ -331,7 +331,7 @@ namespace bpkg
try
{
- for (const dir_entry& de: dir_iterator (rd)) // system_error
+ for (const dir_entry& de: dir_iterator (rd, false /* ignore_dangling */))
{
if (de.ltype () == entry_type::directory)
rmdir (rd / path_cast<dir_path> (de.path ()));