MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / collect_scripts

Function collect_scripts

cli/src/build.rs:102–106  ·  view source on GitHub ↗

Walk the project for `.py` files; skip hidden dirs and the output directory itself.

(project: &Path, out_dir: &Path)

Source from the content-addressed store, hash-verified

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

Callers 1

runFunction · 0.85

Calls 1

walkFunction · 0.70

Tested by

no test coverage detected