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

Function write

libatomic/tests/sandbox_service_test.rs:58–62  ·  view source on GitHub ↗
(root: &Path, rel: &str, content: &str)

Source from the content-addressed store, hash-verified

56}
57
58fn write(root: &Path, rel: &str, content: &str) {
59 let path = root.join(rel);
60 std::fs::create_dir_all(path.parent().unwrap()).unwrap();
61 std::fs::write(path, content).unwrap();
62}
63
64fn header(message: &str) -> ChangeHeader {
65 ChangeHeader::builder()

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected