rustix::fs

Function chmodat

Source
pub fn chmodat<P: Arg, Fd: AsFd>(
    dirfd: Fd,
    path: P,
    mode: Mode,
    flags: AtFlags,
) -> Result<()>
Expand description

fchmodat(dirfd, path, mode, flags)—Sets file or directory permissions.

Platform support for flags varies widely, for example on Linux AtFlags::SYMLINK_NOFOLLOW is not implemented and therefore io::Errno::OPNOTSUPP will be returned.

§References