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

Function walk_dir

perro_source/api_modules/perro_modules/src/file.rs:79–86  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

77 Ok(out)
78}
79
80pub fn walk_dir<P: ResPathSource>(path: P) -> io::Result<Vec<String>> {
81 let path = path.as_res_path_str();
82 let root = disk_path(path)?;
83 let mut out = Vec::new();
84 walk_dir_inner(&root, &mut out)?;
85 out.sort();
86 Ok(out)
87}
88
89pub fn pick_folder(title: &str) -> Option<String> {

Calls 3

disk_pathFunction · 0.85
walk_dir_innerFunction · 0.85
as_res_path_strMethod · 0.80