dirname

Function dirname 

Source
pub fn dirname(path: &Path) -> PathBuf
Expand description

Return the part of Path before the last path separator.