aboutsummaryrefslogtreecommitdiff
path: root/node_modules/tar-stream/extract.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/tar-stream/extract.js')
-rw-r--r--node_modules/tar-stream/extract.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/tar-stream/extract.js b/node_modules/tar-stream/extract.js
index 6b3b9bf44..8be2a472c 100644
--- a/node_modules/tar-stream/extract.js
+++ b/node_modules/tar-stream/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