diff options
author | isaacs <i@izs.me> | 2011-12-16 17:24:25 -0800 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-12-16 18:05:17 -0800 |
commit | 90fb81ad54040f410cf14bfb6b37f0117e430347 (patch) | |
tree | e19de78b8f6096093f8e4c7b2a333737842954a0 /deps/npm/node_modules/fstream | |
parent | a599aeb2a8159c48eafbe066466ea5bc90d0c71c (diff) | |
download | node-new-90fb81ad54040f410cf14bfb6b37f0117e430347.tar.gz |
npm 1.1.0-beta-7
Diffstat (limited to 'deps/npm/node_modules/fstream')
-rw-r--r-- | deps/npm/node_modules/fstream/lib/link-writer.js | 8 | ||||
-rw-r--r-- | deps/npm/node_modules/fstream/package.json | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/deps/npm/node_modules/fstream/lib/link-writer.js b/deps/npm/node_modules/fstream/lib/link-writer.js index 119f61bb65..c16750a64e 100644 --- a/deps/npm/node_modules/fstream/lib/link-writer.js +++ b/deps/npm/node_modules/fstream/lib/link-writer.js @@ -60,8 +60,14 @@ function create (me, lp, link) { // directory, it's very possible that the thing we're linking to // doesn't exist yet (especially if it was intended as a symlink), // so swallow ENOENT errors here and just soldier in. + // Additionally, an EPERM or EACCES can happen on win32 if it's trying + // to make a link to a directory. Again, just skip it. + // A better solution would be to have fs.symlink be supported on + // windows in some nice fashion. if (er) { - if (er.code === "ENOENT" && process.platform === "win32") { + if ((er.code === "ENOENT" || + er.code === "EACCES" || + er.code === "EPERM" ) && process.platform === "win32") { me.ready = true me.emit("ready") me.emit("end") diff --git a/deps/npm/node_modules/fstream/package.json b/deps/npm/node_modules/fstream/package.json index 2661624029..af58b94afb 100644 --- a/deps/npm/node_modules/fstream/package.json +++ b/deps/npm/node_modules/fstream/package.json @@ -2,7 +2,7 @@ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", "name": "fstream", "description": "Advanced file system stream things", - "version": "0.1.9", + "version": "0.1.10", "repository": { "type": "git", "url": "git://github.com/isaacs/fstream.git" |