Skip to main content

normalize_path

Function normalize_path 

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

Normalize an operation path relative to the operator’s root.

Strip leading /, collapse repeated /, and remove . components. Preserve all other components verbatim, including whitespace and ... A trailing / marks a directory and is preserved. A path with no remaining components becomes /.