1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-07 07:04:36 +01:00

Fix #6803: Symlinks to directories are not descended by FileScanner

This commit is contained in:
Michael Steenbeek
2017-12-19 20:51:35 +01:00
committed by Michał Janiszewski
parent aa23370f2d
commit 863a71c984
2 changed files with 7 additions and 1 deletions

View File

@@ -325,7 +325,7 @@ private:
{
DirectoryChild result;
result.Name = std::string(node->d_name);
if (node->d_type & DT_DIR)
if (node->d_type == DT_DIR)
{
result.Type = DIRECTORY_CHILD_TYPE::DC_DIRECTORY;
}
@@ -345,6 +345,11 @@ private:
{
result.Size = statInfo.st_size;
result.LastModified = statInfo.st_mtime;
if (S_ISDIR(statInfo.st_mode))
{
result.Type = DIRECTORY_CHILD_TYPE::DC_DIRECTORY;
}
}
Memory::Free(path);