pub trait NormalizePath {
    fn normalize(&self) -> PathBuf;
    fn is_normalized(&self) -> bool;
}
Expand description

Extension trait to add normalize_path to std’s Path.

Required Methods

Normalize a path without performing I/O.

All redundant separator and up-level references are collapsed.

However, this does not resolve links.

Return true if the path is normalized.

Quirk

If the path does not start with ./ but contains ./ in the middle, then this function might returns true.

Implementations on Foreign Types

Implementors