Function set_permissions

pub fn set_permissions(path: &Path, perm: FilePermissions) -> Result<()>