Walk the project for `.py` files; skip hidden dirs and the output directory itself.
(project: &Path, out_dir: &Path)
| 100 | |
| 101 | /// Walk the project for `.py` files; skip hidden dirs and the output directory itself. |
| 102 | fn collect_scripts(project: &Path, out_dir: &Path) -> Vec<PathBuf> { |
| 103 | let mut scripts = Vec::new(); |
| 104 | walk(project, out_dir, &mut scripts); |
| 105 | scripts |
| 106 | } |
| 107 | |
| 108 | fn walk(dir: &Path, out_dir: &Path, found: &mut Vec<PathBuf>) { |
| 109 | let Ok(entries) = fs::read_dir(dir) else { return }; |