Skip to main content

path_dir_name

Function path_dir_name 

Source
pub fn path_dir_name(path: &Path) -> &str
Expand description

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.