Skip to main content

py_relpath

Function py_relpath 

Source
pub fn py_relpath(path: &str, start: &str) -> String
Expand description

Python os.path.relpath(path, start) on POSIX: both sides are abspath’d lexically, then the relative walk is derived from the component lists. Returns . when they coincide.