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

Method get_recorded_inode

atomic-core/src/record/builder.rs:354–356  ·  view source on GitHub ↗

Check if an inode has already been recorded. # Arguments `inode` - The inode to check # Returns `Some(position)` if already recorded, `None` otherwise.

(&self, inode: &Inode)

Source from the content-addressed store, hash-verified

352 ///
353 /// `Some(position)` if already recorded, `None` otherwise.
354 pub fn get_recorded_inode(&self, inode: &Inode) -> Option<Position<Option<NodeId>>> {
355 self.recorded_inodes.get(inode).copied()
356 }
357
358 /// Check if an inode has been recorded.
359 pub fn is_inode_recorded(&self, inode: &Inode) -> bool {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected