Skip to main content

parent_of

Function parent_of 

Source
pub fn parent_of(path: &str) -> Option<&str>
Expand description

Strip the last segment, returning the parent prefix (with trailing /), or None if the path was already a single segment.