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

Method get_inode

atomic-core/src/output/memory.rs:391–394  ·  view source on GitHub ↗

Get the inode for a file. Returns `None` if the file doesn't exist.

(&self, path: &str)

Source from the content-addressed store, hash-verified

389 ///
390 /// Returns `None` if the file doesn't exist.
391 pub fn get_inode(&self, path: &str) -> Option<Inode> {
392 let files = self.files.borrow();
393 files.get(path).map(|f| f.inode)
394 }
395
396 /// List all files (not directories) in the working copy.
397 ///

Callers 14

test_get_inodeFunction · 0.45
write_import_recordedMethod · 0.45
insert_changeMethod · 0.45
write_recordedMethod · 0.45
recordMethod · 0.45
get_inode_positionFunction · 0.45
is_trackedFunction · 0.45

Calls 1

getMethod · 0.65

Tested by 2

test_get_inodeFunction · 0.36