diff --git a/glob.js b/glob.js index bfdd7a11..3ef8cb79 100644 --- a/glob.js +++ b/glob.js @@ -115,6 +115,15 @@ glob.hasMagic = function (pattern, options_) { return false } +glob.createFsCache = function () { + return { + cache: Object.create(null), + statCache: Object.create(null), + symlinks: Object.create(null), + realpathCache: Object.create(null) + } +} + glob.Glob = Glob inherits(Glob, EE) function Glob (pattern, options, cb) {