mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Game files that are actually recursive symlinks are now skipped during startup.
This commit is contained in:
parent
369c9cdd0f
commit
3a986b447d
|
@ -278,6 +278,15 @@ bool SystemData::populateFolder(FileData* folder)
|
|||
it != dirContent.cend(); it++) {
|
||||
filePath = *it;
|
||||
|
||||
// Skip any recursive symlinks as those would hang the application at various places.
|
||||
if (Utils::FileSystem::isSymlink(filePath)) {
|
||||
if (Utils::FileSystem::resolveSymlink(filePath) ==
|
||||
Utils::FileSystem::getFileName(filePath)) {
|
||||
LOG(LogWarning) << "Skipped \"" << filePath << "\" as it's a recursive symlink";
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Skip hidden files and folders.
|
||||
if (!showHiddenFiles && Utils::FileSystem::isHidden(filePath)) {
|
||||
LOG(LogDebug) << "SystemData::populateFolder(): Skipping hidden " <<
|
||||
|
|
Loading…
Reference in a new issue