Function relative_path

Source
pub fn relative_path(from: &Path, to: &Path) -> PathBuf
Expand description

Turns the given to path into relative path starting from the from path.

Both from and to paths are supposed to be absolute and normalized in the same manner.