From 134d725e4505b1c0d7b2e50f1bea5dd22b414390 Mon Sep 17 00:00:00 2001 From: tommyZZM Date: Tue, 25 Jul 2017 00:01:00 +0800 Subject: [PATCH] Pass vars to entry in _readFile method --- lib/parse.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/parse.js b/lib/parse.js index 69fc2c40..9fb839ea 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -90,6 +90,7 @@ Parse.prototype._readFile = function () { var entry = new Entry(); entry.path = fileName; entry.props.path = fileName; + entry.props.vars = vars; entry.type = (vars.compressedSize === 0 && /[\/\\]$/.test(fileName)) ? 'Directory' : 'File'; if (self._opts.verbose) {