Function TRAP::FileSystem::ToRelativePath(const std::filesystem::path&, const std::filesystem::path&)#
Function Documentation#
-
TRAP::Optional<std::filesystem::path> TRAP::FileSystem::ToRelativePath(const std::filesystem::path &p, const std::filesystem::path &base)#
Converts a path to a relative path.
- Parameters:
p – Path to convert.
base – Base path, against which p will be made relative.
- Returns:
Relative path on success, empty optional otherwise.