pub fn dirname(path: &str) -> String
Expand description
Returns the directory name of a path, similar to the Unix dirname command. Trailing directory separators are ignored,
assert_eq!(&nodejs_path::dirname("/foo/bar/baz/asdf/quux"), "/foo/bar/baz/asdf");