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

Method put

std/src/storage/mod.rs:651–654  ·  view source on GitHub ↗

Saves the in-memory program given by `content` into `raw_location`.

(&mut self, raw_location: &str, content: &[u8])

Source from the content-addressed store, hash-verified

649
650 /// Saves the in-memory program given by `content` into `raw_location`.
651 pub async fn put(&mut self, raw_location: &str, content: &[u8]) -> io::Result<()> {
652 let location = Location::new(raw_location)?;
653 self.put_location(raw_location, &location, content).await
654 }
655
656 /// Updates the ACLs of the file `raw_location` by extending them with the contents of `add` and
657 /// removing the existing entries listed in `remove`.

Callers 8

async_execMethod · 0.45
write_fileMethod · 0.45
test_dir_other_by_cwdFunction · 0.45
put_locationMethod · 0.45

Calls 1

put_locationMethod · 0.80