Skip to main content

repo_rel_slash

Function repo_rel_slash 

Source
pub fn repo_rel_slash(path: &Path, root: &Path) -> String
Expand description

path relative to root, joined with / whatever the platform separator is. Built from components(), not by rewriting \\ in a string, so a literal backslash in a Unix file name is left alone and Path::display on Windows cannot leak a \\ into a key (#4026).