nix::unistd

Function faccessat

Source
pub fn faccessat<P: ?Sized + NixPath>(
    dirfd: Option<RawFd>,
    path: &P,
    mode: AccessFlags,
    flags: AtFlags,
) -> Result<()>
Expand description

Checks the file named by path for accessibility according to the flags given by mode

If dirfd has a value, then path is relative to directory associated with the file descriptor.

If dirfd is None, then path is relative to the current working directory.

ยงReferences

faccessat(2)