pub fn chmod(file: &File, new_mode: u32) -> Result<bool, Error>
Updates the permissions of a file or directory. Returns Ok(true) if permissions had to be changed, Ok(false) if permissions were already correct.
Ok(true)
Ok(false)