Skip to main content

same_path

Function same_path 

Source
pub fn same_path(a: &Path, b: &Path) -> bool
Expand description

True when two paths name the same location: both are soft-canonicalized first, so a path through a symlinked ancestor (macOS /tmp) equals its canonical spelling and a directory that does not exist yet can still be compared.