From 16d2327a3320de743022556f395d313efe27b9e4 Mon Sep 17 00:00:00 2001 From: Nathan LaFreniere Date: Thu, 11 May 2017 08:36:56 -0700 Subject: [PATCH] always pass emptyStream when type is directory (#69) --- extract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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