Somehow this function got flipped around

Unflip it
This commit is contained in:
Peter Atashian
2018-02-03 01:52:04 -05:00
parent f4c83693f9
commit c42d76d3c8

View File

@@ -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())?;
}