From 508e308bfc71ef26c6a07863a908a622ec0d0461 Mon Sep 17 00:00:00 2001 From: Jan Date: Sat, 16 Nov 2019 01:18:16 +0100 Subject: [PATCH] Utils: Fix GetDirectory not returning correct result --- src/Utils/Utils/PathUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)