pub fn path_dir_name(path: &Path) -> &str
Extract the directory name from a path for display purposes.
Returns the last component of the path as a string, or “(unknown)” if the path has no filename or contains invalid UTF-8.