(&self, scope: Scope<'_>)
| 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. |
nothing calls this directly
no test coverage detected