rustix::fs

Function unlinkat

Source
pub fn unlinkat<P: Arg, Fd: AsFd>(
    dirfd: Fd,
    path: P,
    flags: AtFlags,
) -> Result<()>
Available on crate feature fs only.
Expand description

unlinkat(fd, path, flags)—Unlinks a file or remove a directory.

With the REMOVEDIR flag, this removes a directory. This is in place of a rmdirat function.

§References