pub fn set_permissions( start: &File, path: &Path, perm: Permissions, ) -> Result<()>
Perform a chmodat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start.
chmodat
start