mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-11-01 15:02:00 +00:00
Utils: Fix GetDirectory not returning correct result
This commit is contained in:
1 parent
0c60c28a36
commit
508e308bfc
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user