Skip to content

Commit

Permalink
Somehow this function got flipped around
Browse files Browse the repository at this point in the history
Unflip it
  • Loading branch information
retep998 committed Feb 3, 2018
1 parent f4c8369 commit c42d76d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/sys/windows/fs.rs
Expand Up @@ -613,10 +613,10 @@ fn remove_dir_all_recursive(path: &Path) -> io::Result<()> {
for child in readdir(path)? {
let child = child?;
let child_type = child.file_type()?;
if child_type.is_symlink_dir() {
rmdir(&child.path())?;
} else if child_type.is_dir() {
if child_type.is_dir() {
remove_dir_all_recursive(&child.path())?;
} else if child_type.is_symlink_dir() {
rmdir(&child.path())?;
} else {
unlink(&child.path())?;
}
Expand Down

0 comments on commit c42d76d

Please sign in to comment.