(root: &Path, path: &Path, out: &mut Vec<FileSig>)
| 75 | let jobs = PROJECT_SCAN_JOBS.get_or_init(|| Mutex::new(BTreeMap::new())); |
| 76 | if let Ok(mut guard) = jobs.lock() { |
| 77 | guard.retain(|existing_key, _| existing_key == &key); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | pub fn scan_project(root: &Path) -> Vec<FileSig> { |
| 82 | let mut out = Vec::new(); |
| 83 | scan_watch_path(root, &root.join("res"), &mut out); |
| 84 | for file in watched_root_files() { |
| 85 | scan_watch_path(root, &root.join(file), &mut out); |
| 86 | } |
| 87 | out.sort(); |
| 88 | out |
| 89 | } |
| 90 | |
| 91 | pub fn changed_paths(before: &[FileSig], after: &[FileSig]) -> Vec<String> { |
no test coverage detected