MCPcopy Index your code
hub / github.com/endbasic/endbasic / async_exec

Method async_exec

std/src/storage/cmds.rs:226–235  ·  view source on GitHub ↗
(&self, scope: Scope<'_>)

Source from the content-addressed store, hash-verified

224 }
225
226 async fn async_exec(&self, scope: Scope<'_>) -> CallResult<()> {
227 debug_assert_eq!(2, scope.nargs());
228 let src = scope.get_string(0).to_owned();
229 let dest = scope.get_string(1).to_owned();
230
231 let mut storage = self.storage.borrow_mut();
232 storage.copy(&src, &dest).await?;
233
234 Ok(())
235 }
236}
237
238/// The `DIR` command.

Callers

nothing calls this directly

Calls 5

show_dirFunction · 0.85
get_stringMethod · 0.80
copyMethod · 0.80
nargsMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected