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

Function receipts_on_disk

atomic-cli/src/commands/diagnostics/collect.rs:903–912  ·  view source on GitHub ↗

Agent directories under the integrations root that hold a receipt.

(root: &Path)

Source from the content-addressed store, hash-verified

901
902/// Agent directories under the integrations root that hold a receipt.
903fn receipts_on_disk(root: &Path) -> Vec<String> {
904 let Ok(entries) = std::fs::read_dir(root) else {
905 return Vec::new();
906 };
907 entries
908 .flatten()
909 .filter(|entry| entry.path().join(RECEIPT_FILE).is_file())
910 .filter_map(|entry| entry.file_name().into_string().ok())
911 .collect()
912}
913
914fn file_state(path: &Path, recorded_blake3: &str) -> FileState {
915 match std::fs::read(path) {

Callers 1

collect_fromFunction · 0.85

Calls 5

collectMethod · 0.45
is_fileMethod · 0.45
pathMethod · 0.45
okMethod · 0.45
file_nameMethod · 0.45

Tested by

no test coverage detected