Skip to main content

parent

Function parent 

Source
pub fn parent(path: &str, fmt: PathFormat) -> String
Expand description

Get the parent (everything before the last separator). Returns the path itself if there’s no parent (like “/” returns “/”).