Function get_parent_of_component_in_path

Source
pub fn get_parent_of_component_in_path(
    path: &Path,
    component: &str,
) -> Option<PathBuf>
Expand description

If the path contains a component that equals the component argument, returns its parent. Ignores paths that contain __MACOSX in the parent.