pub fn relative_path(from: &Path, to: &Path) -> PathBuf
Turns the given to path into relative path starting from the from path.
to
from
Both from and to paths are supposed to be absolute and normalized in the same manner.