diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-16 22:20:49 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-18 11:15:38 +0300 |
commit | b946e380d4e414cec85082ebe67c8ffed6579277 (patch) | |
tree | ba2fd4ffca5d66dfdd7d450dad98d37d03d0045a /libbutl/filesystem.ixx | |
parent | 12b450c33ddd804581a9212c7b88ccaa1d95b636 (diff) |
Add ignore_dangling parameter to dir_iterator() ctor
Diffstat (limited to 'libbutl/filesystem.ixx')
-rw-r--r-- | libbutl/filesystem.ixx | 4 |
1 files changed, 2 insertions, 2 deletions
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; |