rootasrole_core::util

Function toggle_lock_config

Source
pub fn toggle_lock_config<P: AsRef<Path>>(
    file: &P,
    lock: ImmutableLock,
) -> Result<()>
Expand description

Set or unset the immutable flag on a file

ยงArguments

  • file - The file to set the immutable flag on
  • lock - Whether to set or unset the immutable flag