relativize
Get a relative path between this path and another path.
The relative path is created by replacing each name in the common prefix of the two paths with ..
in the other path, so that for two normalized paths p
and q
, p.resolve(p.relativize(q)).normalize() == q
.
This method does not access the file system, so the path obtained by resolving the return relative path against this path may identify a different file than the other path, for example when a name after the common prefix of the two paths in this path is a symbolic link.
Return
a relative path between this path and the other path
Parameters
other
the other path
See also
Throws
if the other path doesn't have the same root URI as this path