Function file_unlink

Source
pub unsafe fn file_unlink(fd_: fd, path_: &[u8], flags_: ulflags) -> errno
Expand description

Unlinks a file, or removes a directory.

ยงParameters

fd: The working directory at which the resolution of the path starts.

path: The path that needs to be unlinked or removed.

flags: Possible values:

  • REMOVEDIR: If set, attempt to remove a directory. Otherwise, unlink a file.