diff --git a/.gitignore b/.gitignore index 2f24c57..112ea84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules/ coverage/ .nyc_output/ +.idea/ 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) {