Fix Java project structure.

This commit is contained in:
Olivia Brooks
2026-01-26 14:29:43 -05:00
parent 80e5a27c20
commit 11737e67f8
4 changed files with 54 additions and 14 deletions

View File

@@ -10,7 +10,12 @@ pub fn expand_files<P: AsRef<Path>>(path: P) -> anyhow::Result<Vec<PathBuf>> {
Ok(std::fs::read_dir(path)?
.filter_map(|entry| {
let path = entry.ok()?.path();
if path.is_file() { Some(path) } else { None }
if path.is_dir() {
Some(expand_files(path).ok()?)
} else {
Some(vec![path])
}
})
.flatten()
.collect())
}