pub fn parent(path: &str, fmt: PathFormat) -> StringExpand description
Get the parent (everything before the last separator). Returns the path itself if there’s no parent (like “/” returns “/”).
pub fn parent(path: &str, fmt: PathFormat) -> StringGet the parent (everything before the last separator). Returns the path itself if there’s no parent (like “/” returns “/”).