node-unzip
node-unzip copied to clipboard
unable to unzip zip created in MAC OS
when the zip file is ziped in mac os, in windows , there will be a '__MACOX' folder in the archive, and the error event will emit. how to fixed this error,thanks
Just ignore it
if(entry.type === 'File' && entry.path.slice(0,8) !== '__MACOSX') {
console.log('Unzipping...');
entry.pipe(fs.createWriteStream('./'+fileName))
} else {
entry.autodrain();
}
Related reading: http://superuser.com/questions/104500/what-is-macosx-folder