mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Fix symlink directories on POSIX.
This commit is contained in:
parent
be01a0ea59
commit
ab377bf1ec
@ -279,7 +279,8 @@ static bool dirent_is_directory(const char *path, const struct dirent *entry)
|
||||
#elif defined(DT_DIR)
|
||||
if (entry->d_type == DT_DIR)
|
||||
return true;
|
||||
else if (entry->d_type == DT_UNKNOWN) // This can happen on certain file systems.
|
||||
else if (entry->d_type == DT_UNKNOWN // This can happen on certain file systems.
|
||||
|| entry->d_type == DT_LNK)
|
||||
return path_is_directory(path);
|
||||
else
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user