Function rustix::fs::chmodat
pub fn chmodat<P: path::Arg, Fd: AsFd>(dirfd: &Fd, path: P, mode: Mode) -> io::Result<()>
The portability is definied by:
#[cfg(not(target_os = "wasi"))]
Documentation
fchmodat(dirfd, path, mode, 0)
—Sets file or directory permissions.
The flags argument is fixed to 0, so AT_SYMLINK_NOFOLLOW
is not
supported. Platform support for this flag varies widely.
Note that this implementation does not support O_PATH
file descriptors,
even on platforms where the host libc emulates it.