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.
2 parents e080bc8 + cda9bfe commit 826d4bcCopy full SHA for 826d4bc
src/bootstrap/src/core/build_steps/clean.rs
@@ -181,7 +181,7 @@ fn rm_rf(path: &Path) {
181
panic!("failed to get metadata for file {}: {}", path.display(), e);
182
}
183
Ok(metadata) => {
184
- if metadata.file_type().is_file() || metadata.file_type().is_symlink() {
+ if !metadata.file_type().is_dir() {
185
do_op(path, "remove file", |p| match fs::remove_file(p) {
186
#[cfg(windows)]
187
Err(e)
0 commit comments