Skip to main content

normalize_path

Function normalize_path 

Source
pub fn normalize_path(path: &str) -> String
Expand description

Normalizes a path by collapsing duplicate slashes and removing trailing slashes.

Preserves the root / path.