Function rootasrole_core::util::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 onlock- Whether to set or unset the immutable flag