bower / decompress-zip

Module that decompresses zip files
MIT License
102 stars 76 forks source link

Unable to decompress relatively big ZIP on Windows #24

Closed shyiko closed 10 years ago

shyiko commented 10 years ago

Steps to reproduce (just an example):

var DecompressZip = require('decompress-zip');
var unzipper = new DecompressZip("C:\\ext-4.2.1-gpl.zip")
unzipper.on('error', function (err) {
    console.log('Caught an error', err);
});
unzipper.on('extract', function (log) {
    console.log('Finished extracting');
});
unzipper.extract({
    path: 'C:\\',
    follow: false,
    filter: function (file) {
        return file.type !== "SymbolicLink";
    }
});
Caught an error { [Error: EMFILE, open 'C:\ext-4.2.1.883\resources\
ext-theme-gray\images\grid\grid3-hd-btn-left.gif']
  errno: 20,
  code: 'EMFILE',
  path: 'C:\\ext-4.2.1.883\\resources\\ext-theme-gray\\images\\
grid\\grid-hd-btn-left.gif' }

Note that unzip@0.1.9 also wasn't up to the task (which means neither 1.2.7 nor 1.3.2 versions of Bower are able to install dependencies like that (though tar.gz decompression works fine)).

ENV: OS: Windows XP [Version 5.1.2600], node: v0.10.26