Skip to content

Commit

Permalink
Merge pull request #26 from CSNW/fix-emfile
Browse files Browse the repository at this point in the history
Large zips throw EMFILE (too many file descriptor) errors
  • Loading branch information
wibblymat committed May 22, 2014
2 parents bdb9f74 + f86a977 commit c9f9f1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/decompress-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// assertions everywhere to make sure that we are not dealing with a ZIP type
// that I haven't designed for. Things like spanning archives, non-DEFLATE
// compression, encryption, etc.
var fs = require('fs');
var fs = require('graceful-fs');
var Q = require('q');
var path = require('path');
var util = require('util');
Expand Down
2 changes: 1 addition & 1 deletion lib/extractors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var stream = require('stream');
if (!stream.Readable) {
var stream = require('readable-stream');
}
var fs = require('fs');
var fs = require('graceful-fs');
var Q = require('q');
var path = require('path');
var zlib = require('zlib');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"binary": "~0.3.0",
"touch": "0.0.2",
"readable-stream": "~1.1.8",
"nopt": "~2.2.0"
"nopt": "~2.2.0",
"graceful-fs": "~2.0.3"
}
}

0 comments on commit c9f9f1c

Please sign in to comment.