pub fn normalize_path<'path>(
path: impl Into<Cow<'path, Path>>,
) -> Cow<'path, Path>Expand description
Normalize a Cow path, removing ., .., repeated separators (//), and trailing slashes.
Paths that point to the current directory (. or .\.) are normalized to the empty path.
When the path is already normalized, returns it as-is without allocating.