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

Method put_tree

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

Source from the content-addressed store, hash-verified

875 }
876
877 fn put_tree(&mut self, path: &str, inode: Inode) -> PristineResult<()> {
878 {
879 let mut table = self.txn.open_table(TREE)?;
880 table.insert(path, inode.get())?;
881 }
882 {
883 let mut table = self.txn.open_table(REV_TREE)?;
884 table.insert(inode.get(), path)?;
885 }
886 Ok(())
887 }
888
889 fn del_tree(&mut self, path: &str) -> PristineResult<Option<Inode>> {
890 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