(
&self,
path: &str,
)
| 169 | } |
| 170 | |
| 171 | fn execute_absence( |
| 172 | &self, |
| 173 | path: &str, |
| 174 | ) -> Result<super::operation::PendingFilesystemEffect, RepositoryError> { |
| 175 | let effect = self |
| 176 | .effect_for_expected_new(path, |value| *value == EffectValue::Absent) |
| 177 | .ok_or_else(|| RepositoryError::InvalidOperation { |
| 178 | message: format!("switch operation omitted removal lease for '{path}'"), |
| 179 | })?; |
| 180 | self.execute_effect(effect, None) |
| 181 | } |
| 182 | |
| 183 | fn execute_directory( |
| 184 | &self, |
no test coverage detected