aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_help.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/src/commands_help.cpp')
-rw-r--r--toolsrc/src/commands_help.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolsrc/src/commands_help.cpp b/toolsrc/src/commands_help.cpp
index e3c489a9d..0c6b0c766 100644
--- a/toolsrc/src/commands_help.cpp
+++ b/toolsrc/src/commands_help.cpp
@@ -7,10 +7,9 @@ namespace vcpkg::Commands::Help
void help_topic_valid_triplet(const VcpkgPaths& paths)
{
System::println("Available architecture triplets:");
- auto it = fs::directory_iterator(paths.triplets);
- for (; it != fs::directory_iterator(); ++it)
+ for (auto&& path : paths.get_filesystem().get_files_non_recursive(paths.triplets))
{
- System::println(" %s", it->path().stem().filename().string());
+ System::println(" %s", path.stem().filename().string());
}
}