From 0bc21296c9ef32412237a8cc0c8141d0226b9070 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Tue, 11 Apr 2017 15:16:39 -0700 Subject: [vcpkg] Alias out standard filesystem headers to ensure clean separation. --- toolsrc/src/commands_cache.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'toolsrc/src/commands_cache.cpp') diff --git a/toolsrc/src/commands_cache.cpp b/toolsrc/src/commands_cache.cpp index 4c8690c1c..c7096b127 100644 --- a/toolsrc/src/commands_cache.cpp +++ b/toolsrc/src/commands_cache.cpp @@ -10,9 +10,8 @@ namespace vcpkg::Commands::Cache static std::vector read_all_binary_paragraphs(const VcpkgPaths& paths) { std::vector output; - for (auto it = fs::directory_iterator(paths.packages); it != fs::directory_iterator(); ++it) + for (auto&& path : paths.get_filesystem().non_recursive_find_all_files_in_dir(paths.packages)) { - const fs::path& path = it->path(); const Expected> pghs = Paragraphs::get_single_paragraph(paths.get_filesystem(), path / "CONTROL"); if (auto p = pghs.get()) { -- cgit v1.2.3