Skip to main content

relative_to

Function relative_to 

Source
pub fn relative_to(path: &str, root: &str) -> Option<String>
Expand description

path relative to root (both normalized), or None when it isn’t inside it. The root itself is "".