Function relative_path

Source
pub fn relative_path(path: &Utf8Path, base: &Utf8Path) -> Utf8PathBuf
Expand description

Get a version of path that works when the working directory is base. This is opportunistically a relative path, but we can always fall back to an absolute path to make sure the path still works.