Skip to main content

normalize_lexical

Function normalize_lexical 

Source
pub fn normalize_lexical(path: impl AsRef<Path>) -> PathBuf
Expand description

Normalizes a path by removing lexical . and .. components.

This function does not touch the file system and does not resolve symbolic links.

§Arguments

  • path: Path to normalize.

§Returns

Returns path with lexical current-directory and parent-directory components simplified.