Function nc::unlink [−][src]
pub fn unlink(filename: &str) -> Result<(), Errno>
Expand description
Delete a name and possibly the file it refers to.
let path = "/tmp/nc-unlink"; let ret = nc::open(path, nc::O_WRONLY | nc::O_CREAT, 0o644); assert!(ret.is_ok()); let fd = ret.unwrap(); assert!(nc::close(fd).is_ok()); assert!(nc::unlink(path).is_ok());