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

Function write

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

Source from the content-addressed store, hash-verified

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

Calls 2

parentMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected