From da81a95f765302959ccc8293d0b1d566b5234297 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 23 Oct 2016 18:13:08 +0300 Subject: Employ butl::dir_empty() in bpkg::empty(dir_path) --- bpkg/utility.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bpkg/utility.cxx') 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) { -- cgit v1.1