change project structure to make more sense

(move wm only stuff to wm dir)
This commit is contained in:
stjet
2025-04-21 06:57:42 +00:00
parent c5a41244b4
commit 667b4cd2d9
31 changed files with 87 additions and 71 deletions

View File

@@ -214,3 +214,16 @@ pub fn path_autocomplete(current_path: &str, partial_path: &str) -> Option<Strin
None
}
}
pub fn get_all_files(dir: PathBuf) -> Vec<PathBuf> {
let mut files = Vec::new();
for entry in read_dir(dir).unwrap() {
let path = entry.unwrap().path();
if path.is_dir() {
files.extend(get_all_files(path));
} else {
files.push(path);
}
}
files
}