mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fix issue where file scanning may return prematurely in Filesystem.h on
UNIX platforms.
This commit is contained in:
parent
733e12ae6f
commit
4b0c8521b2
@ -191,8 +191,7 @@ namespace musik { namespace core { namespace sdk { namespace fs {
|
||||
|
||||
struct stat info = {0};
|
||||
if (stat(fn.c_str(), &info) < 0) {
|
||||
closedir(dir);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
if (S_ISDIR(info.st_mode)) {
|
||||
std::string name = entry->d_name;
|
||||
|
Loading…
Reference in New Issue
Block a user