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

Function is_tracked

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

Check if a path is tracked. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string

(txn: &T, path: &str)

Source from the content-addressed store, hash-verified

897/// * `txn` - A transaction (read or write)
898/// * `path` - The normalized path string
899pub fn is_tracked<T: TreeTxnT>(txn: &T, path: &str) -> TrackingResult<bool> {
900 let result = txn
901 .get_inode(path)
902 .map_err(|e| TrackingError::Database(e.to_string()))?;
903 Ok(result.is_some())
904}
905
906/// Get the inode for a tracked path.
907///

Callers 4

addMethod · 0.85
add_batchMethod · 0.85
add_directoryMethod · 0.85
is_trackedMethod · 0.85

Calls 1

get_inodeMethod · 0.45

Tested by

no test coverage detected