diff --git a/src/corehost/common/pal.unix.cpp b/src/corehost/common/pal.unix.cpp index 117b07a89..171820e36 100644 --- a/src/corehost/common/pal.unix.cpp +++ b/src/corehost/common/pal.unix.cpp @@ -222,7 +222,7 @@ void pal::readdir(const pal::string_t& path, std::vector* list) continue; } - if (!S_ISREG(sb.st_mode)) + if (!S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) { continue; }