Function rmdir
pub unsafe fn rmdir<P>(filename: P) -> Result<(), i32> ⓘ
Available on crate feature
dep_nc
only.Expand description
Delete a directory.
§Examples
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());