relative

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

Deprecated

Use relativize instead

Replace with

relativize(root, path)

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

Return

The relative path as a string, or null if the relative computation is not possible.

Parameters

root

The root path to which the relative computation is performed.

path

The path for which the relative computation is performed.