Skip to main content

chmod

Function chmod 

Source
pub fn chmod(path: &str, mode: FileMode) -> Result<()>
Expand description

Changes the permission mode of a file.

ยงErrors

Returns an error if the path is invalid or the underlying OS call fails.