Skip to main content

shorten_path_relative

Function shorten_path_relative 

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

Returns a path relative to root for disambiguated display. Falls back to basename if stripping fails.