Function get_parent

Source
pub fn get_parent<D: Into<PathBuf>>(dir: D) -> String
Expand description

Gets the parent directory from a file path

Returns the current path if there is no parent