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";
}
});
Run C:\>node decompress.js:
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
Steps to reproduce (just an example):
cd C:\ && npm install decompress-zip@0.0.6
C:\>node decompress.js
:ENV: OS: Windows XP [Version 5.1.2600], node: v0.10.26