Skip to main content

chmod

Function chmod 

Source
pub fn chmod(ctx: &mut HostContext, path: &Path, mode: u32) -> Result<()>
Expand description

Set Unix mode bits on path (chmod).

In dry-run mode, records a planned chmod and returns. On non-Unix apply builds, the call is a no-op.

ยงErrors

Returns HortoError::Io when set_permissions fails on Unix apply mode.