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

Method put_tree

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

Source from the content-addressed store, hash-verified

1396 }
1397
1398 fn put_tree(&mut self, path: &str, inode: Inode) -> PristineResult<()> {
1399 {
1400 let mut table = self.txn.open_table(TREE)?;
1401 table.insert(path, inode.get())?;
1402 }
1403 {
1404 let mut table = self.txn.open_table(REV_TREE)?;
1405 table.insert(inode.get(), path)?;
1406 }
1407 Ok(())
1408 }
1409
1410 fn del_tree(&mut self, path: &str) -> PristineResult<Option<Inode>> {
1411 let inode = {

Callers 10

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