fix: Corrected a rare edge case on how tool files are generated during parallel executions

This commit is contained in:
2026-08-15 18:41:13 -06:00
parent 95a8c3df44
commit ede87df960
3 changed files with 240 additions and 80 deletions
-14
View File
@@ -54,20 +54,6 @@ pub async fn expand_glob_paths<T: AsRef<str>>(
Ok(new_paths)
}
pub fn clear_dir(dir: &Path) -> Result<()> {
for entry in fs::read_dir(dir)? {
let entry = entry?;
let path = entry.path();
if path.is_dir() {
fs::remove_dir_all(&path)?;
} else {
fs::remove_file(&path)?;
}
}
Ok(())
}
pub fn list_file_names<T: AsRef<Path>>(dir: T, ext: &str) -> Vec<String> {
match fs::read_dir(dir.as_ref()) {
Ok(rd) => {