Skip to content

Commit

Permalink
img loader: add directory_symlink support
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG committed Jan 18, 2024
1 parent 12c9d99 commit a0cf365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/imgloader.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit a0cf365

Please sign in to comment.