Skip to content

Commit c42d76d

Browse files
committed
Somehow this function got flipped around
Unflip it
1 parent f4c8369 commit c42d76d

File tree

1 file changed

+3
-3
lines changed
  • src/libstd/sys/windows

1 file changed

+3
-3
lines changed

src/libstd/sys/windows/fs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,10 @@ fn remove_dir_all_recursive(path: &Path) -> io::Result<()> {
613613
for child in readdir(path)? {
614614
let child = child?;
615615
let child_type = child.file_type()?;
616-
if child_type.is_symlink_dir() {
617-
rmdir(&child.path())?;
618-
} else if child_type.is_dir() {
616+
if child_type.is_dir() {
619617
remove_dir_all_recursive(&child.path())?;
618+
} else if child_type.is_symlink_dir() {
619+
rmdir(&child.path())?;
620620
} else {
621621
unlink(&child.path())?;
622622
}

0 commit comments

Comments
 (0)