FileSystem: Canonicalize() after RealPath()
This commit is contained in:
parent
57f6bda59b
commit
e2d87f554b
|
@ -465,6 +465,10 @@ std::string Path::RealPath(const std::string_view& path)
|
|||
}
|
||||
#endif
|
||||
|
||||
// Get rid of any current/parent directory components before returning.
|
||||
// This should be fine on Linux, since any symbolic links have already replaced the leading portion.
|
||||
Path::Canonicalize(&realpath);
|
||||
|
||||
return realpath;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue