Remove the directory as well

This commit is contained in:
Arpad Müller
2024-01-19 21:54:11 +01:00
parent 403a128aa4
commit e73c6495dc

View File

@@ -66,6 +66,9 @@ pub fn remove_dir_all(path: impl AsRef<Path>) -> io::Result<()> {
strip_not_found(std::fs::remove_file(entry.path())).unwrap_or(Ok(()))?;
}
}
if let Some(res) = strip_not_found(std::fs::remove_dir(path)) {
res?;
}
Ok(())
}