diff --git a/src/utils/File_Utils.hpp b/src/utils/File_Utils.hpp index 7bd228d..ac1442e 100644 --- a/src/utils/File_Utils.hpp +++ b/src/utils/File_Utils.hpp @@ -50,7 +50,8 @@ inline bool FolderExists(const std::string& folderPath) { } inline std::string getFolder(const std::string& path) { - return boost::filesystem::path(path).parent_path().string(); + auto parent = boost::filesystem::path(path).parent_path().string(); + return parent == "" ? "." : parent; } inline std::string GetFileName(const std::string& path) {