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

Function is_tracked

atomic-repository/src/tracking/tree_ops.rs:286–291  ·  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

284/// * `txn` - A transaction (read or write)
285/// * `path` - The normalized path string
286pub fn is_tracked<T: TreeTxnT>(txn: &T, path: &str) -> TrackingResult<bool> {
287 let result = txn
288 .get_inode(path)
289 .map_err(|e| TrackingError::Database(e.to_string()))?;
290 Ok(result.is_some())
291}
292
293/// Get the inode for a tracked path.
294///

Callers 10

addMethod · 0.85
add_batchMethod · 0.85
add_directoryMethod · 0.85
removeMethod · 0.85
is_trackedMethod · 0.85
get_file_contentMethod · 0.85
has_recorded_contentMethod · 0.85

Calls 1

get_inodeMethod · 0.45

Tested by

no test coverage detected