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

Function write

atomic-cli/tests/it/remote_sandbox_client_test.rs:275–279  ·  view source on GitHub ↗
(root: &Path, rel: &str, content: &str)

Source from the content-addressed store, hash-verified

273}
274
275fn write(root: &Path, rel: &str, content: &str) {
276 let path = root.join(rel);
277 std::fs::create_dir_all(path.parent().unwrap()).unwrap();
278 std::fs::write(path, content).unwrap();
279}
280
281/// Every redb file under `dir`.
282fn redb_files(dir: &Path) -> Vec<PathBuf> {

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected