Skip to main content

set_mode

Function set_mode 

Source
pub fn set_mode(path: &Path, mode: u32) -> Result<()>
Expand description

Apply mode (Unix permission bits) to path. No-op on non-Unix platforms.

ยงErrors

Returns an error if the permissions cannot be set.