Skip to content

Commit 07e81fe

Browse files
hd-geniusgibbed
authored andcommitted
[Base] Filter out relative directories on linux
1 parent 41c4231 commit 07e81fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/xenia/base/filesystem_posix.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ std::vector<FileInfo> ListFiles(const std::filesystem::path& path) {
217217
}
218218

219219
while (auto ent = readdir(dir)) {
220+
if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0) {
221+
continue;
222+
}
223+
220224
FileInfo info;
221225

222226
info.name = ent->d_name;

0 commit comments

Comments
 (0)