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

Method snapshot_directories

atomic-core/src/pristine/txn/write/tree.rs:86–95  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

84 }
85
86 fn snapshot_directories(&self) -> PristineResult<Vec<(Inode, u8)>> {
87 let table = self.txn.open_table(DIRECTORIES)?;
88 let mut rows = Vec::new();
89 for entry in table.iter()? {
90 let (inode, flags) = entry?;
91 rows.push((Inode::new(inode.value()), flags.value()));
92 }
93 rows.sort_unstable();
94 Ok(rows)
95 }
96
97 fn snapshot_inode_graph_keys(&self) -> PristineResult<Vec<(Inode, GraphNode<NodeId>)>> {
98 let table = self.txn.open_multimap_table(INODE_GRAPH)?;

Callers

nothing calls this directly

Calls 3

valueMethod · 0.80
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected