parent

Function parent 

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

Returns the parent of the given path.

If path is a root or empty path, this function returns None.