pub fn chmod(path: &str, mode: FileMode) -> Result<()>
Changes the permission mode of a file.
Returns an error if the path is invalid or the underlying OS call fails.