sindresorhus / gulp-zip

ZIP compress files
MIT License
270 stars 47 forks source link

Prevent null file.content errors #46

Closed gulian closed 9 years ago

gulian commented 9 years ago

Sometimes file.contents is null and break Yazl.addBuffer calls.

Tested with a folder :

sindresorhus commented 9 years ago

@kevva file with empty contents is folders. Yazl should handle those somehow.

kevva commented 9 years ago

@sindresorhus, https://github.com/thejoshwolfe/yazl#addemptydirectorymetadatapath-options. However, a file with empty contents, isn't that the same?