Skip to main content

resolve_existing_prefix

Function resolve_existing_prefix 

Source
fn resolve_existing_prefix(path: &Path) -> PathBuf
Expand description

path with its longest existing prefix resolved through symlinks and the rest kept as spelled: canonicalize fails wholesale once the last component is gone, and the two sides of a comparison then use different spellings of the same directory.