Function TRAP::FileSystem::ToRelativePath(const std::filesystem::path&)#

Function Documentation#

TRAP::Optional<std::filesystem::path> TRAP::FileSystem::ToRelativePath(const std::filesystem::path &p)#

Converts a path to a relative path.

Parameters:

p – Path to convert.

Returns:

Relative path on success, empty optional otherwise.