Permalink
Browse files

graceful-fs: upgrade to 1.1.9

  • Loading branch information...
1 parent 1548d5f commit 3487273d40b2ece636f3e5ce9058e164fe2ecace @isaacs isaacs committed Jul 11, 2012
Showing with 19 additions and 20 deletions.
  1. +16 −8 node_modules/graceful-fs/graceful-fs.js
  2. +3 −12 node_modules/graceful-fs/package.json
@@ -151,14 +151,6 @@ if (constants.hasOwnProperty('O_SYMLINK') &&
}
-// lstat on windows, missing from early 0.5 versions
-// replacing with stat isn't quite perfect, but good enough to get by.
-if (process.platform === "win32" && !process.binding("fs").lstat) {
- fs.lstat = fs.stat
- fs.lstatSync = fs.statSync
-}
-
-
// lutimes implementation, or no-op
if (!fs.lutimes) {
if (constants.hasOwnProperty("O_SYMLINK")) {
@@ -255,6 +247,22 @@ function chownErOk (er) {
}
+// if lchmod/lchown do not exist, then make them no-ops
+if (!fs.lchmod) {
+ fs.lchmod = function (path, mode, cb) {
+ process.nextTick(cb)
+ }
+ fs.lchmodSync = function () {}
+}
+if (!fs.lchown) {
+ fs.lchown = function (path, uid, gid, cb) {
+ process.nextTick(cb)
+ }
+ fs.lchownSync = function () {}
+}
+
+
+
// on Windows, A/V software can lock the directory, causing this
// to fail with an EACCES or EPERM if the directory contains newly
@@ -6,7 +6,7 @@
},
"name": "graceful-fs",
"description": "fs monkey-patching to avoid EMFILE and other problems",
- "version": "1.1.8",
+ "version": "1.1.9",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-graceful-fs.git"
@@ -16,16 +16,7 @@
"node": ">=0.4.0"
},
"devDependencies": {},
- "_npmUser": {
- "name": "isaacs",
- "email": "i@izs.me"
- },
- "_id": "graceful-fs@1.1.8",
- "dependencies": {},
- "optionalDependencies": {},
- "_engineSupported": true,
- "_npmVersion": "1.1.10",
- "_nodeVersion": "v0.7.7-pre",
- "_defaultsLoaded": true,
+ "readme": "Just like node's `fs` module, but it does an incremental back-off when\nEMFILE is encountered.\n\nUseful in asynchronous situations where one needs to try to open lots\nand lots of files.\n",
+ "_id": "graceful-fs@1.1.9",
"_from": "graceful-fs@~1.1.1"
}

0 comments on commit 3487273

Please sign in to comment.