rusteam::filesystem
pub fn has_same_name_as_parent_dir(filepath: &Path) -> bool
Checks if the last two components of the filepath are equal.
filepath
Is automatically false when:
false
let path = PathBuf::from("/path/to/entry/entry"); assert!(has_same_name_as_parent_dir(&path))