fs/Path: add operator/(Path,Path)
Modeled after std::filesystem::operator/() from C++17.
This commit is contained in:
+1
-1
@@ -113,7 +113,7 @@ ParsePath(const char *path)
|
||||
if (path2.IsNull())
|
||||
return nullptr;
|
||||
|
||||
return AllocatedPath::Build(home, path2);
|
||||
return home / path2;
|
||||
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
|
||||
throw FormatRuntimeError("not an absolute path: %s", path);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user