We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DirectoryNotEmpty
1 parent 913996b commit caed83dCopy full SHA for caed83d
src/bootstrap/clean.rs
@@ -75,6 +75,8 @@ fn rm_rf(path: &Path) {
75
do_op(path, "remove dir", |p| {
76
fs::remove_dir(p).or_else(|e| {
77
// Check for dir not empty on Windows
78
+ // FIXME: Once `ErrorKind::DirectoryNotEmpty` is stabilized,
79
+ // match on `e.kind()` instead.
80
#[cfg(windows)]
81
if e.raw_os_error() == Some(145) {
82
return Ok(());
0 commit comments