Skip to content

Commit a0cf365

Browse files
committed
img loader: add directory_symlink support
1 parent 12c9d99 commit a0cf365

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/imgloader.ixx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public:
3838

3939
if (std::filesystem::exists(updatePath))
4040
{
41-
for (const auto& file : std::filesystem::recursive_directory_iterator(updatePath, std::filesystem::directory_options::skip_permission_denied))
41+
constexpr auto perms = std::filesystem::directory_options::skip_permission_denied | std::filesystem::directory_options::follow_directory_symlink;
42+
for (const auto& file : std::filesystem::recursive_directory_iterator(updatePath, perms))
4243
{
4344
auto filePath = std::filesystem::path(file.path());
4445

0 commit comments

Comments
 (0)