mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
Utils: Fix GetDirectory not returning correct result
This commit is contained in:
parent
0c60c28a36
commit
508e308bfc
@ -27,9 +27,9 @@ namespace utils
|
|||||||
|
|
||||||
std::string Path::GetDirectory(const std::string& pathInput)
|
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)
|
std::string Path::Combine(const std::string& p1, const std::string& p2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user