rustix::fs

Function chown

Source
pub fn chown<P: Arg>(
    path: P,
    owner: Option<Uid>,
    group: Option<Gid>,
) -> Result<()>
Available on crate feature fs only.
Expand description

chown(path, owner, group)—Sets open file or directory ownership.

§References