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

Function get_inode

atomic-repository/src/tracking/tree_ops.rs:299–302  ·  view source on GitHub ↗

Get the inode for a tracked path. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string

(txn: &T, path: &str)

Source from the content-addressed store, hash-verified

297/// * `txn` - A transaction (read or write)
298/// * `path` - The normalized path string
299pub fn get_inode<T: TreeTxnT>(txn: &T, path: &str) -> TrackingResult<Option<Inode>> {
300 txn.get_inode(path)
301 .map_err(|e| TrackingError::Database(e.to_string()))
302}
303
304/// Get the path for an inode.
305///

Callers 9

removeMethod · 0.85
get_file_inodeMethod · 0.85
get_file_contentMethod · 0.85
has_recorded_contentMethod · 0.85
test_add_and_get_inodeFunction · 0.85
test_move_tracked_fileFunction · 0.85

Calls 1

get_inodeMethod · 0.45

Tested by 2

test_add_and_get_inodeFunction · 0.68
test_move_tracked_fileFunction · 0.68