pub unsafe fn rmdir<P: AsRef<Path>>(filename: P) -> Result<(), Errno>
Expand description
Delete a directory.
§Example
let path = "/tmp/nc-rmdir";
let ret = unsafe { nc::mkdirat(nc::AT_FDCWD, path, 0o755) };
assert!(ret.is_ok());
let ret = unsafe { nc::rmdir(path) };
assert!(ret.is_ok());