diff options
| author | Peter Atashian <retep998@gmail.com> | 2018-02-03 01:52:04 -0500 |
|---|---|---|
| committer | Peter Atashian <retep998@gmail.com> | 2018-02-03 01:52:04 -0500 |
| commit | c42d76d3c80b4938e26e628706363b677fde6ca1 (patch) | |
| tree | c2a8af079a05c89369fbd649b43a780be70ab991 /src/libstd/sys | |
| parent | f4c83693f9e2445b441dfcf43838697d25d1a11f (diff) | |
| download | rust-c42d76d3c80b4938e26e628706363b677fde6ca1.tar.gz rust-c42d76d3c80b4938e26e628706363b677fde6ca1.zip | |
Somehow this function got flipped around
Unflip it
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/windows/fs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index 512c9cb838c..7e3b16558d4 100644 --- a/src/libstd/sys/windows/fs.rs +++ b/src/libstd/sys/windows/fs.rs @@ -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())?; } |
