Skip to main content

normalize_lexically

Function normalize_lexically 

Source
pub fn normalize_lexically(p: &Path) -> PathBuf
Expand description

Lexically resolve . and .. in a path without touching the filesystem.

This is pure: it never follows symlinks, never reads the FS, and never pops past a root or prefix component. The result has the same root / prefix as the input.