Commit 4e05bf0
fs: add synchronous retries to rimraf
This commit gives the synchronous version of rimraf the same
linear retry logic as the asynchronous version. Prior to this
commit, sync rimraf kept retrying the operation as soon as
possible until maxRetries was reached.
PR-URL: #30785
Fixes: #30580
Refs: #30569
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>1 parent e1eb6a6 commit 4e05bf0Copy full SHA for 4e05bf0
File tree
Expand file treeCollapse file tree
1 file changed
+6
-2
lines changedOpen diff view settings
Filter options
- lib/internal/fs
Expand file treeCollapse file tree
1 file changed
+6
-2
lines changedOpen diff view settings
Collapse file
+6-2Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
| ||
208 | 209 | |
209 | 210 | |
210 | 211 | |
211 | | - |
| 212 | + |
212 | 213 | |
213 | 214 | |
214 | | - |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
215 | 219 | |
216 | 220 | |
217 | 221 | |
|
0 commit comments