Skip to content

Commit

Permalink
Improve directory browsing speed
Browse files Browse the repository at this point in the history
... thanks to Ghabry
  • Loading branch information
d0k3 committed Apr 4, 2016
1 parent cfbf283 commit e75ee68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ std::vector<FileInfoEx> fsGetDirectoryContentsEx(const std::string directory) {
const std::string name = std::string(ent->d_name);
if((name.compare(".") != 0) && (name.compare("..") != 0)) {
const std::string path = dirWithSlash + std::string(ent->d_name);
bool isDirectory = fsIsDirectory(path);
bool isDirectory = (ent->d_type == DT_DIR);
result.push_back({path, std::string(ent->d_name), isDirectory});
}
}
Expand Down

0 comments on commit e75ee68

Please sign in to comment.