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

Function walk_dir_inner

perro_source/api_modules/perro_modules/src/file.rs:142–152  ·  view source on GitHub ↗
(path: &Path, out: &mut Vec<String>)

Source from the content-addressed store, hash-verified

140 )),
141 }
142}
143
144fn walk_dir_inner(path: &Path, out: &mut Vec<String>) -> io::Result<()> {
145 for entry in fs::read_dir(path)? {
146 let entry = entry?;
147 let path = entry.path();
148 out.push(path.to_string_lossy().to_string());
149 if path.is_dir() {
150 walk_dir_inner(&path, out)?;
151 }
152 }
153 Ok(())
154}
155

Callers 1

walk_dirFunction · 0.85

Calls 3

read_dirFunction · 0.85
pathMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected