fixed stupid directory iterator issue
This commit is contained in:
parent
1b2c3ccc42
commit
19edb8155f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue