aboutsummaryrefslogtreecommitdiff
path: root/bpkg/utility.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-23 18:13:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-10-23 18:13:08 +0300
commitda81a95f765302959ccc8293d0b1d566b5234297 (patch)
treeb164f252c3d9649082111afbeaaa4f8d6f190a65 /bpkg/utility.cxx
parentb813953b595af2c7172651a07e0044c1eebcd84c (diff)
Employ butl::dir_empty() in bpkg::empty(dir_path)
Diffstat (limited to 'bpkg/utility.cxx')
-rw-r--r--bpkg/utility.cxx3
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)
{