always pass emptyStream when type is directory (#69)
This commit is contained in:
parent
f4a2cf1e16
commit
16d2327a33
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ var Extract = function (opts) {
|
||||||
|
|
||||||
self._locked = true
|
self._locked = true
|
||||||
|
|
||||||
if (!header.size) {
|
if (!header.size || header.type === 'directory') {
|
||||||
self._parse(512, onheader)
|
self._parse(512, onheader)
|
||||||
self.emit('entry', header, emptyStream(self, offset), onunlock)
|
self.emit('entry', header, emptyStream(self, offset), onunlock)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue