MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / execute_absence

Method execute_absence

atomic-repository/src/repository/switch.rs:171–181  ·  view source on GitHub ↗
(
        &self,
        path: &str,
    )

Source from the content-addressed store, hash-verified

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,

Callers 2

remove_pathMethod · 0.80
switch_view_journaledMethod · 0.80

Calls 2

execute_effectMethod · 0.80

Tested by

no test coverage detected