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

Method delete

std/src/storage/mem.rs:38–43  ·  view source on GitHub ↗
(&mut self, name: &str)

Source from the content-addressed store, hash-verified

36#[async_trait(?Send)]
37impl Drive for InMemoryDrive {
38 async fn delete(&mut self, name: &str) -> io::Result<()> {
39 match self.programs.remove(name) {
40 Some(_) => Ok(()),
41 None => Err(io::Error::new(io::ErrorKind::NotFound, "Entry not found")),
42 }
43 }
44
45 async fn enumerate(&self) -> io::Result<DriveFiles> {
46 let date = time::OffsetDateTime::from_unix_timestamp(1_588_757_875).unwrap();

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected