devela::_dep::rustix::fs

Function chmodat

pub fn chmodat<P, Fd>(
    dirfd: Fd,
    path: P,
    mode: Mode,
    flags: AtFlags,
) -> Result<(), Errno> 
where P: Arg, Fd: AsFd,
Available on crate feature dep_rustix only.
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