summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/glob/glob.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/glob/glob.js')
-rw-r--r--deps/npm/node_modules/glob/glob.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/deps/npm/node_modules/glob/glob.js b/deps/npm/node_modules/glob/glob.js
index 4dba04adec..02d15b755d 100644
--- a/deps/npm/node_modules/glob/glob.js
+++ b/deps/npm/node_modules/glob/glob.js
@@ -41,6 +41,7 @@
module.exports = glob
var fs = require('fs')
+var rp = require('fs.realpath')
var minimatch = require('minimatch')
var Minimatch = minimatch.Minimatch
var inherits = require('inherits')
@@ -232,7 +233,7 @@ Glob.prototype._realpathSet = function (index, cb) {
// one or more of the links in the realpath couldn't be
// resolved. just return the abs value in that case.
p = self._makeAbs(p)
- fs.realpath(p, self.realpathCache, function (er, real) {
+ rp.realpath(p, self.realpathCache, function (er, real) {
if (!er)
set[real] = true
else if (er.syscall === 'stat')