diff --git a/libs/utils/src/fs_ext.rs b/libs/utils/src/fs_ext.rs index f5ae1d3f07..29b62ace05 100644 --- a/libs/utils/src/fs_ext.rs +++ b/libs/utils/src/fs_ext.rs @@ -66,6 +66,9 @@ pub fn remove_dir_all(path: impl AsRef) -> 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(()) }