Function TRAP::FileSystem::ToCanonicalAbsolutePath#
Function Documentation#
-
TRAP::Optional<std::filesystem::path> TRAP::FileSystem::ToCanonicalAbsolutePath(const std::filesystem::path &p)#
Converts a path to a canonical absolute path, i.e. an absolute path that has no dot, dot-dot elements or symbolic links in its generic format representation.
- Parameters:
p – Existing path to convert.
- Returns:
Canonical absolute path that resolves to the same file as ToAbsolutePath(p) on success, empty optional otherwise.