pub fn set_mode(path: &Path, mode: u32) -> Result<()>
Apply mode (Unix permission bits) to path. No-op on non-Unix platforms.
mode
path
Returns an error if the permissions cannot be set.