From 19edb8155f5f92af2253c68ae17a4c1474e000d9 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Thu, 20 Jun 2024 22:29:08 +0300 Subject: [PATCH] fixed stupid directory iterator issue --- src/core/libraries/kernel/file_system.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/libraries/kernel/file_system.cpp b/src/core/libraries/kernel/file_system.cpp index 88166b6f..286d93d5 100644 --- a/src/core/libraries/kernel/file_system.cpp +++ b/src/core/libraries/kernel/file_system.cpp @@ -21,9 +21,7 @@ std::vector GetDirectoryEntries(const std::string& path for (const auto& entry : std::filesystem::directory_iterator(curpath)) { Core::FileSys::DirEntry e = {}; if (std::filesystem::is_directory(entry.path().string())) { - Core::FileSys::DirEntry e = {}; - e.name = entry.path().filename().string() + - "/"; // hmmm not sure if it has to be like this... + e.name = entry.path().filename().string(); e.isFile = false; } else { e.name = entry.path().filename().string();