Skip to main content

chmod_file

Function chmod_file 

Source
pub fn chmod_file(
    path: &Path,
    mode: u32,
    config: &ChmodConfig,
) -> Result<bool, Error>
Expand description

Apply a mode to a file and return whether a change was made.

If config.verbose is true, prints a message for every file. If config.changes is true, prints only when the mode changes.