rimraf 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rimraf.js +5 -2
package/package.json
CHANGED
package/rimraf.js
CHANGED
|
@@ -350,10 +350,13 @@ function rmkidsSync (p, options) {
|
|
|
350
350
|
var retries = isWindows ? 100 : 1
|
|
351
351
|
var i = 0
|
|
352
352
|
do {
|
|
353
|
+
var threw = true
|
|
353
354
|
try {
|
|
354
|
-
|
|
355
|
+
var ret = options.rmdirSync(p, options)
|
|
356
|
+
threw = false
|
|
357
|
+
return ret
|
|
355
358
|
} finally {
|
|
356
|
-
if (++i < retries)
|
|
359
|
+
if (++i < retries && threw)
|
|
357
360
|
continue
|
|
358
361
|
}
|
|
359
362
|
} while (true)
|