Function bdrck::fs::set_ownership_by_name
source · pub fn set_ownership_by_name<P: AsRef<Path>>(
path: P,
user: &str,
group: &str,
fail_on_access_denied: bool,
follow: bool
) -> Result<()>
Expand description
Set the user and group ownership of a file or directory. This is a
convenience wrapper around set_ownership
which allows the user and group
to be specified by name instead of by ID.