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

Function write

libatomic/tests/record_service_test.rs:26–30  ·  view source on GitHub ↗
(root: &std::path::Path, rel: &str, content: &str)

Source from the content-addressed store, hash-verified

24};
25
26fn write(root: &std::path::Path, rel: &str, content: &str) {
27 let path = root.join(rel);
28 std::fs::create_dir_all(path.parent().unwrap()).unwrap();
29 std::fs::write(path, content).unwrap();
30}
31
32/// A repository with one change on `dev`.
33fn host() -> (TempDir, std::path::PathBuf, Arc<DaemonState>, RepositoryRef) {

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected