pub fn set_permissions(start: &File, path: &Path, perm: Permissions) -> Result<()>
Expand description

Perform a chmodat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start.