pub fn parent_of(path: &str) -> Option<&str>
Strip the last segment, returning the parent prefix (with trailing /), or None if the path was already a single segment.
/