MCPcopy Create free account
hub / github.com/PerroEngine/Perro / scan_watch_path

Function scan_watch_path

perro_editor/res/scripts/assets/editor_file_watch.rs:77–88  ·  view source on GitHub ↗
(root: &Path, path: &Path, out: &mut Vec<FileSig>)

Source from the content-addressed store, hash-verified

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
81pub 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
91pub fn changed_paths(before: &[FileSig], after: &[FileSig]) -> Vec<String> {

Callers 1

scan_projectFunction · 0.85

Calls 4

sig_for_metaFunction · 0.85
scan_innerFunction · 0.85
rel_pathFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected