From b946e380d4e414cec85082ebe67c8ffed6579277 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 16 May 2018 22:20:49 +0300 Subject: Add ignore_dangling parameter to dir_iterator() ctor --- libbutl/filesystem.ixx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbutl/filesystem.ixx') diff --git a/libbutl/filesystem.ixx b/libbutl/filesystem.ixx index 170c108..e5c1298 100644 --- a/libbutl/filesystem.ixx +++ b/libbutl/filesystem.ixx @@ -9,7 +9,7 @@ namespace butl { // @@ Could 0 size be a valid and faster way? // - return dir_iterator (d) == dir_iterator (); + return dir_iterator (d, false /* ignore_dangling */) == dir_iterator (); } inline bool @@ -126,7 +126,7 @@ namespace butl // inline dir_iterator:: dir_iterator (dir_iterator&& x) noexcept - : e_ (std::move (x.e_)), h_ (x.h_) + : e_ (std::move (x.e_)), h_ (x.h_), ignore_dangling_ (x.ignore_dangling_) { #ifndef _WIN32 x.h_ = nullptr; -- cgit v1.1