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

Function list_tracked_directories

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

List all tracked directories. # Arguments `txn` - A transaction (read or write) # Returns A vector of tracked directories.

(txn: &T)

Source from the content-addressed store, hash-verified

346///
347/// A vector of tracked directories.
348pub fn list_tracked_directories<T: TreeTxnT>(txn: &T) -> TrackingResult<Vec<TrackedFile>> {
349 let all_tracked = list_tracked(txn)?;
350 Ok(all_tracked.into_iter().filter(|f| f.is_directory).collect())
351}
352
353/// List all explicitly tracked empty directories.
354///

Callers

nothing calls this directly

Calls 2

list_trackedFunction · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected