Utils: Fix GetDirectory not returning correct result

This commit is contained in:
Jan 2019-11-16 01:18:16 +01:00
parent 0c60c28a36
commit 508e308bfc

View File

@ -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)