Fix issue where file scanning may return prematurely in Filesystem.h on

UNIX platforms.
This commit is contained in:
casey langen 2022-12-03 14:08:49 -08:00
parent 733e12ae6f
commit 4b0c8521b2

View File

@ -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;