path_relative_to

Function path_relative_to 

Source
pub(crate) fn path_relative_to(from: &Path, to: &Path) -> Result<PathBuf>
Expand description

Computes a relative path from from to to.

Both from and to must be absolute paths.