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

Method del_tree

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

Source from the content-addressed store, hash-verified

887 }
888
889 fn del_tree(&mut self, path: &str) -> PristineResult<Option<Inode>> {
890 let inode = {
891 let mut table = self.txn.open_table(TREE)?;
892 let removed = table.remove(path)?;
893 removed.map(|value| Inode::new(value.value()))
894 };
895
896 if let Some(inode) = inode {
897 let mut table = self.txn.open_table(REV_TREE)?;
898 table.remove(inode.get())?;
899 }
900
901 Ok(inode)
902 }
903
904 fn put_file_index(
905 &mut self,

Callers 9

test_tree_operationsFunction · 0.80
write_import_recordedMethod · 0.80
insert_changeMethod · 0.80
write_recordedMethod · 0.80
remove_from_treeFunction · 0.80
move_trackedFunction · 0.80

Calls 2

removeMethod · 0.65
getMethod · 0.65

Tested by 1

test_tree_operationsFunction · 0.64