always pass emptyStream when type is directory (#69)

This commit is contained in:
Nathan LaFreniere 2017-05-11 08:36:56 -07:00 committed by Mathias Buus
parent f4a2cf1e16
commit 16d2327a33

View file

@ -166,7 +166,7 @@ var Extract = function (opts) {
self._locked = true
if (!header.size) {
if (!header.size || header.type === 'directory') {
self._parse(512, onheader)
self.emit('entry', header, emptyStream(self, offset), onunlock)
return