Function otter_api_tests::crates::otter_support::crates::nix::unistd::chown
[−]pub fn chown<P>(
path: &P,
owner: Option<Uid>,
group: Option<Gid>
) -> Result<(), Errno> where
P: NixPath + ?Sized,
Expand description
Change the ownership of the file at path
to be owned by the specified
owner
(user) and group
(see
chown(2)).
The owner/group for the provided path name will not be modified if None
is
provided for that argument. Ownership change will be attempted for the path
only if Some
owner/group is provided.