pub fn set_dirty_flag(path: &Path, active: bool, _reason: &str) -> Result<()>
Set or clear the dirty flag on a file