fn containing_directory(path: &Path) -> &Path
Select a path’s lookup directory without treating an empty parent as root.