pub trait NormalizePath { fn normalize(&self) -> Cow<'_, Path>; }
Extension trait to add normalize_path to std’s Path.
normalize_path
Path
Normalize a path without performing I/O.
All redundant separator and up-level references are collapsed.
However, this does not resolve links.