From bc5e68e6827ad40120f952b26884b8289fcbc133 Mon Sep 17 00:00:00 2001 From: conceptualspace Date: Wed, 2 May 2018 11:57:16 -0400 Subject: [PATCH 1/2] ignore jetbrains IDE config --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2f24c57..112ea84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ coverage/ .nyc_output/ +.idea/ From 41b336e337a7cde0a2a0d54fc13469ff6fa54807 Mon Sep 17 00:00:00 2001 From: conceptualspace Date: Wed, 2 May 2018 12:03:24 -0400 Subject: [PATCH 2/2] win32 rename EBUSY: retry when rename fails with EBUSY we should also retry like we do with EPERM and EACCESS behaviour is consistent with rm (https://github.com/isaacs/rimraf) resolves #127 --- polyfills.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyfills.js b/polyfills.js index 4c6aca7..e53e732 100644 --- a/polyfills.js +++ b/polyfills.js @@ -96,7 +96,7 @@ function patch (fs) { var backoff = 0; fs$rename(from, to, function CB (er) { if (er - && (er.code === "EACCES" || er.code === "EPERM") + && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 60000) { setTimeout(function() { fs.stat(to, function (stater, st) {