diff options
author | Gar <gar+gh@danger.computer> | 2021-09-23 17:13:17 +0300 |
---|---|---|
committer | Gar <gar+gh@danger.computer> | 2021-09-23 17:13:17 +0300 |
commit | eafd55eae219a6c15d2857d06b673a67d7f7d060 (patch) | |
tree | 77f096f0fe39e8db8b8af57f426f6a95b83b84d2 /node_modules/glob/glob.js | |
parent | 2c741900f560fd3ad0d5fa8afe583fbd83c5dbbe (diff) |
deps: glob@7.2.0
Diffstat (limited to 'node_modules/glob/glob.js')
-rw-r--r-- | node_modules/glob/glob.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/node_modules/glob/glob.js b/node_modules/glob/glob.js index dc27aef10..afcf82752 100644 --- a/node_modules/glob/glob.js +++ b/node_modules/glob/glob.js @@ -40,7 +40,6 @@ module.exports = glob -var fs = require('fs') var rp = require('fs.realpath') var minimatch = require('minimatch') var Minimatch = minimatch.Minimatch @@ -501,7 +500,7 @@ Glob.prototype._readdirInGlobStar = function (abs, cb) { var lstatcb = inflight(lstatkey, lstatcb_) if (lstatcb) - fs.lstat(abs, lstatcb) + self.fs.lstat(abs, lstatcb) function lstatcb_ (er, lstat) { if (er && er.code === 'ENOENT') @@ -542,7 +541,7 @@ Glob.prototype._readdir = function (abs, inGlobStar, cb) { } var self = this - fs.readdir(abs, readdirCb(this, abs, cb)) + self.fs.readdir(abs, readdirCb(this, abs, cb)) } function readdirCb (self, abs, cb) { @@ -746,13 +745,13 @@ Glob.prototype._stat = function (f, cb) { var self = this var statcb = inflight('stat\0' + abs, lstatcb_) if (statcb) - fs.lstat(abs, statcb) + self.fs.lstat(abs, statcb) function lstatcb_ (er, lstat) { if (lstat && lstat.isSymbolicLink()) { // If it's a symlink, then treat it as the target, unless // the target does not exist, then treat it as a file. - return fs.stat(abs, function (er, stat) { + return self.fs.stat(abs, function (er, stat) { if (er) self._stat2(f, abs, null, lstat, cb) else |