diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-10-23 18:13:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-10-23 18:13:08 +0300 |
commit | da81a95f765302959ccc8293d0b1d566b5234297 (patch) | |
tree | b164f252c3d9649082111afbeaaa4f8d6f190a65 | |
parent | b813953b595af2c7172651a07e0044c1eebcd84c (diff) |
Employ butl::dir_empty() in bpkg::empty(dir_path)
-rw-r--r-- | bpkg/utility.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bpkg/utility.cxx b/bpkg/utility.cxx index 5d37972..206b358 100644 --- a/bpkg/utility.cxx +++ b/bpkg/utility.cxx @@ -92,8 +92,7 @@ namespace bpkg { try { - dir_iterator i (d); - return i == end (i); + return dir_empty (d); } catch (const system_error& e) { |