chmod

Function chmod 

Source
pub fn chmod(file: &File, new_mode: u32) -> Result<bool, Error>
Expand description

Updates the permissions of a file or directory. Returns Ok(true) if permissions had to be changed, Ok(false) if permissions were already correct.