pub fn parent(path: &str) -> &str
Extracts the path corresponding to the parent node for a given path.
path