diff --git a/extract.js b/extract.js index 6b3b9bf..8be2a47 100644 --- a/extract.js +++ b/extract.js @@ -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