pub fn py_path_str(p: &str) -> StringExpand 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.