Agent directories under the integrations root that hold a receipt.
(root: &Path)
| 901 | |
| 902 | /// Agent directories under the integrations root that hold a receipt. |
| 903 | fn 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 | |
| 914 | fn file_state(path: &Path, recorded_blake3: &str) -> FileState { |
| 915 | match std::fs::read(path) { |