diff options
author | isaacs <i@izs.me> | 2012-03-23 03:20:59 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-23 03:20:59 +0400 |
commit | 57003ea3efb7c3f431d5693e9bef8895e79e0688 (patch) | |
tree | 811e483ec4336070a387a2a26a1491ec1f2b584f /node_modules/graceful-fs | |
parent | b57d3bb1cb275e8cd83dd59dafac16cfd3348e36 (diff) |
update graceful-fs
Diffstat (limited to 'node_modules/graceful-fs')
-rw-r--r-- | node_modules/graceful-fs/graceful-fs.js | 25 | ||||
-rw-r--r-- | node_modules/graceful-fs/package.json | 4 |
2 files changed, 15 insertions, 14 deletions
diff --git a/node_modules/graceful-fs/graceful-fs.js b/node_modules/graceful-fs/graceful-fs.js index 36e0f844b..ecbda31a5 100644 --- a/node_modules/graceful-fs/graceful-fs.js +++ b/node_modules/graceful-fs/graceful-fs.js @@ -259,16 +259,17 @@ function chownErOk (er) { // on Windows, A/V software can lock the directory, causing this // to fail with an EACCES or EPERM if the directory contains newly // created files. Try again on failure, for up to 1 second. -var rename_ = fs.rename -fs.rename = function rename (from, to, cb) { - var start = Date.now() - rename_(from, to, function CB (er) { - if (er - && process.platform === "win32" - && (er.code === "EACCES" || er.code === "EPERM") - && Date.now() - start < 1000) { - return rename_(from, to, CB) - } - cb(er) - }) +if (process.platform === "win32") { + var rename_ = fs.rename + fs.rename = function rename (from, to, cb) { + var start = Date.now() + rename_(from, to, function CB (er) { + if (er + && (er.code === "EACCES" || er.code === "EPERM") + && Date.now() - start < 1000) { + return rename_(from, to, CB) + } + cb(er) + }) + } } diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json index e426579ec..757d3014c 100644 --- a/node_modules/graceful-fs/package.json +++ b/node_modules/graceful-fs/package.json @@ -6,7 +6,7 @@ }, "name": "graceful-fs", "description": "fs monkey-patching to avoid EMFILE and other problems", - "version": "1.1.7", + "version": "1.1.8", "repository": { "type": "git", "url": "git://github.com/isaacs/node-graceful-fs.git" @@ -20,7 +20,7 @@ "name": "isaacs", "email": "i@izs.me" }, - "_id": "graceful-fs@1.1.7", + "_id": "graceful-fs@1.1.8", "dependencies": {}, "optionalDependencies": {}, "_engineSupported": true, |