From ccf4f5e92bef4a6f0670f9d28f40cb09e1b730d4 Mon Sep 17 00:00:00 2001 From: Stephen Anthony Date: Sat, 13 Aug 2022 21:35:00 -0230 Subject: [PATCH] Attempt to speed up directory parsing. --- src/common/FSNodeREGULAR.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/common/FSNodeREGULAR.cxx b/src/common/FSNodeREGULAR.cxx index 8a5c356e2..feb02ef8b 100644 --- a/src/common/FSNodeREGULAR.cxx +++ b/src/common/FSNodeREGULAR.cxx @@ -128,10 +128,7 @@ bool FSNodeREGULAR::getChildren(AbstractFSList& myList, ListMode mode) const return false; std::error_code ec; - for (const auto& entry: fs::directory_iterator{_fspath, - fs::directory_options::follow_directory_symlink | - fs::directory_options::skip_permission_denied, - ec}) + for (const auto& entry: fs::directory_iterator{_fspath, ec}) { const auto& path = entry.path();