diff --git a/src/Utils/Utils/PathUtils.cpp b/src/Utils/Utils/PathUtils.cpp index 823f0873..6b5c1355 100644 --- a/src/Utils/Utils/PathUtils.cpp +++ b/src/Utils/Utils/PathUtils.cpp @@ -27,9 +27,9 @@ namespace utils std::string Path::GetDirectory(const std::string& pathInput) { - const std::filesystem::path path(pathInput); + std::filesystem::path path(pathInput); - return path.relative_path().string(); + return path.remove_filename().string(); } std::string Path::Combine(const std::string& p1, const std::string& p2)