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

Function get_path

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

Get the path for an inode. # Arguments `txn` - A transaction (read or write) `inode` - The inode to look up

(txn: &T, inode: Inode)

Source from the content-addressed store, hash-verified

308/// * `txn` - A transaction (read or write)
309/// * `inode` - The inode to look up
310pub fn get_path<T: TreeTxnT>(txn: &T, inode: Inode) -> TrackingResult<Option<String>> {
311 txn.get_path(inode)
312 .map_err(|e| TrackingError::Database(e.to_string()))
313}
314
315/// List all tracked files.
316///

Callers

nothing calls this directly

Calls 1

get_pathMethod · 0.45

Tested by

no test coverage detected