Skip to main content

directory

Function directory 

Source
pub fn directory(pathname: &str) -> String
Expand description

obtain the directory portion of a pathname (via Path::parent) Matches Perl’s pathname_directory.