mirror of
https://github.com/neondatabase/neon.git
synced 2026-07-04 04:30:38 +00:00
Remove the directory as well
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user