relativize

open suspend override fun relativize(root: Path, path: Path): String?(source)

Computes the relative path from the given root to the specified path.

Return

the relative path from the root to the given path as a normalized string, or null if the paths have no common prefix.

Parameters

root

the root path to which the provided path will be relativized.

path

the path for which the relative path needs to be determined.