Function common_prefix

Source
pub fn common_prefix(left: &Utf8Path, right: &Utf8Path) -> Utf8PathBuf
Expand description

Returns the common prefix of two paths. If the paths are identical, returns the path parent.