Skip to main content

py_normpath

Function py_normpath 

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

Python posixpath.normpath(path): collapse duplicate slashes and . components, resolve .. lexically (kept when it would climb past a relative start; dropped at an absolute root), preserve an exactly-double leading slash. Empty input yields ..