From a0cf36552747a77de993b5944ccfbd7a849aec94 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Thu, 18 Jan 2024 18:37:12 +0800 Subject: [PATCH] img loader: add directory_symlink support --- source/imgloader.ixx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/imgloader.ixx b/source/imgloader.ixx index 263d90d6..cb94fe8c 100644 --- a/source/imgloader.ixx +++ b/source/imgloader.ixx @@ -38,7 +38,8 @@ public: if (std::filesystem::exists(updatePath)) { - for (const auto& file : std::filesystem::recursive_directory_iterator(updatePath, std::filesystem::directory_options::skip_permission_denied)) + constexpr auto perms = std::filesystem::directory_options::skip_permission_denied | std::filesystem::directory_options::follow_directory_symlink; + for (const auto& file : std::filesystem::recursive_directory_iterator(updatePath, perms)) { auto filePath = std::filesystem::path(file.path());