Skip to main content

normalise_path

Function normalise_path 

Source
pub fn normalise_path(path: &PathBuf) -> PathBuf
Expand description

Cleans a path and ensures it begins with the root.

§Arguments

  • path - The path to normalise.

§Returns

The given path, prefixed with / if missing, and . & .. components processed.