MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / write

Function write

nodedb/src/data/executor/handlers/reclaim/vector.rs:84–89  ·  view source on GitHub ↗
(path: &Path, bytes: &[u8])

Source from the content-addressed store, hash-verified

82 use tempfile::TempDir;
83
84 fn write(path: &Path, bytes: &[u8]) {
85 if let Some(parent) = path.parent() {
86 std::fs::create_dir_all(parent).unwrap();
87 }
88 std::fs::write(path, bytes).unwrap();
89 }
90
91 #[test]
92 fn unlinks_bare_and_named_field_ckpts() {

Calls

no outgoing calls