Commit 91f587e
committed
fix: don't let rimraf failure prevent EPERM/EBUSY retry loop
On Windows, when the target file is locked (e.g. by antivirus or
another process), both rename and rimraf fail with EPERM. Previously
rimraf threw before the retry loop was reached. Now rimraf errors are
swallowed so the retry loop can wait for the lock to clear.1 parent cb233b9 commit 91f587e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments