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 b1b9edf commit dcf53c1Copy full SHA for dcf53c1
src/libstd/sys/windows/fs.rs
@@ -611,9 +611,11 @@ fn remove_dir_all_recursive(path: &Path) -> io::Result<()> {
611
let child = child?;
612
let child_type = child.file_type()?;
613
if child_type.is_dir() {
614
- remove_dir_all_recursive(&child.path())?;
615
- } else if child_type.is_symlink_dir() {
616
- rmdir(&child.path())?;
+ if child_type.is_reparse_point() {
+ rmdir(&child.path())?;
+ } else {
617
+ remove_dir_all_recursive(&child.path())?;
618
+ }
619
} else {
620
unlink(&child.path())?;
621
}
0 commit comments