Skip to main content

portable_path_fix

Function portable_path_fix 

Source
fn portable_path_fix(path: &str) -> Option<String>
Expand description

Rewrite every \ in path to / when the result is a relative path that [resolve_relative] accepts. Returns None for a path with no \, and for rooted, drive-prefixed, or UNC forms, where the swap would change the path’s meaning.