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

Method put_tree

atomic-core/src/pristine/txn/write/mod.rs:1350–1360  ·  view source on GitHub ↗
(&mut self, path: &str, inode: Inode)

Source from the content-addressed store, hash-verified

1348 }
1349
1350 fn put_tree(&mut self, path: &str, inode: Inode) -> PristineResult<()> {
1351 {
1352 let mut table = self.txn.open_table(TREE)?;
1353 table.insert(path, inode.get())?;
1354 }
1355 {
1356 let mut table = self.txn.open_table(REV_TREE)?;
1357 table.insert(inode.get(), path)?;
1358 }
1359 Ok(())
1360 }
1361
1362 fn del_tree(&mut self, path: &str) -> PristineResult<Option<Inode>> {
1363 let inode = {

Callers 9

test_tree_operationsFunction · 0.80
write_import_recordedMethod · 0.80
insert_changeMethod · 0.80
write_recordedMethod · 0.80
add_to_treeFunction · 0.80
add_directory_to_treeFunction · 0.80
move_trackedFunction · 0.80

Calls 2

getMethod · 0.65
insertMethod · 0.45

Tested by 1

test_tree_operationsFunction · 0.64