Check stat mode in addition to dirent type
This commit is contained in:
parent
778e63a5a6
commit
9093b18ac2
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ void pal::readdir(const pal::string_t& path, std::vector<pal::string_t>* list)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!S_ISREG(sb.st_mode))
|
if (!S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue