EvanOxfeld / node-unzip

node.js cross-platform unzip using streams
MIT License
613 stars 343 forks source link

Extracted file size different than the actual file size. #71

Closed Dineshs91 closed 9 years ago

Dineshs91 commented 9 years ago

I am using the following code to unzip a zip file. http://dl.nwjs.io/v0.11.6/chromedriver-nw-v0.11.6-osx-x64.zip

chromeDriverLocal - path of the zip file.

fs.createReadStream(chromeDriverLocal)
     .pipe(unzip.Parse())
     .on('entry', function (entry) {
         if (entry.path.indexOf('chromedriver') >= 0) {
             entry.pipe(fs.createWriteStream(chromeDriverFile));
         } else {
             entry.autodrain();
        }
 });

This code gives a file 'chromedriver' (15.6 MB) whose size differs, than the actual chromedriver size (17.2 MB).

unzip version: 0.1.11 (Latest) os: Mac os version 10.9.5

Dineshs91 commented 9 years ago

This is not an issue with unzip. So closing this issue.