We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4c8369 commit c42d76dCopy full SHA for c42d76d
src/libstd/sys/windows/fs.rs
@@ -613,10 +613,10 @@ fn remove_dir_all_recursive(path: &Path) -> io::Result<()> {
613
for child in readdir(path)? {
614
let child = child?;
615
let child_type = child.file_type()?;
616
- if child_type.is_symlink_dir() {
617
- rmdir(&child.path())?;
618
- } else if child_type.is_dir() {
+ if child_type.is_dir() {
619
remove_dir_all_recursive(&child.path())?;
+ } else if child_type.is_symlink_dir() {
+ rmdir(&child.path())?;
620
} else {
621
unlink(&child.path())?;
622
}
0 commit comments