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

Method execute_directory

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

Source from the content-addressed store, hash-verified

181 }
182
183 fn execute_directory(
184 &self,
185 path: &str,
186 ) -> Result<super::operation::PendingFilesystemEffect, RepositoryError> {
187 let effect = self
188 .effect_for_expected_new(path, |value| {
189 matches!(value, EffectValue::File(state) if state.kind == FileKind::Directory)
190 })
191 .ok_or_else(|| RepositoryError::InvalidOperation {
192 message: format!("switch operation omitted directory lease for '{path}'"),
193 })?;
194 self.execute_effect(effect, None)
195 }
196
197 fn execute_file(
198 &self,

Callers 1

create_directoryMethod · 0.80

Calls 2

execute_effectMethod · 0.80

Tested by

no test coverage detected