af_core::path
pub fn parent(path: &str) -> Option<&str>
Returns the parent of the given path.
If path is a root or empty path, this function returns None.
path
None