[Base] Filter out relative directories on linux
This commit is contained in:
parent
41c423109f
commit
07e81fe172
|
@ -217,6 +217,10 @@ std::vector<FileInfo> ListFiles(const std::filesystem::path& path) {
|
|||
}
|
||||
|
||||
while (auto ent = readdir(dir)) {
|
||||
if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
FileInfo info;
|
||||
|
||||
info.name = ent->d_name;
|
||||
|
|
Loading…
Reference in New Issue