fixed stupid directory iterator issue

This commit is contained in:
georgemoralis 2024-06-20 22:29:08 +03:00
parent 1b2c3ccc42
commit 19edb8155f
1 changed files with 1 additions and 3 deletions

View File

@ -21,9 +21,7 @@ std::vector<Core::FileSys::DirEntry> GetDirectoryEntries(const std::string& path
for (const auto& entry : std::filesystem::directory_iterator(curpath)) { for (const auto& entry : std::filesystem::directory_iterator(curpath)) {
Core::FileSys::DirEntry e = {}; Core::FileSys::DirEntry e = {};
if (std::filesystem::is_directory(entry.path().string())) { if (std::filesystem::is_directory(entry.path().string())) {
Core::FileSys::DirEntry e = {}; e.name = entry.path().filename().string();
e.name = entry.path().filename().string() +
"/"; // hmmm not sure if it has to be like this...
e.isFile = false; e.isFile = false;
} else { } else {
e.name = entry.path().filename().string(); e.name = entry.path().filename().string();