Skip to main content

relative_to_root

Function relative_to_root 

Source
pub fn relative_to_root(root: &Path, path: &Path) -> PathBuf
Expand description

Compute relative path of path under root, or return the path unchanged if not under root.