Skip to main content

canonicalize_preserving_missing

Function canonicalize_preserving_missing 

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

Canonicalizes path, absolutizing relative paths and falling back to canonicalizing the nearest existing ancestor when path does not exist yet (e.g. deleted files or macOS /var vs /private/var symlinks).