Skip to main content

py_path_str

Function py_path_str 

Source
pub fn py_path_str(p: &str) -> String
Expand description

str(PurePosixPath(p)): duplicate slashes and . components collapse, a trailing slash drops, "" becomes "."; a leading // (exactly two slashes) is preserved, /+ otherwise collapses to one.