123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- "use strict";
- const Sync = require("glob").GlobSync,
- util = require("util");
- const IGNORE = Symbol("ignore");
- function GlobSync(pattern, options, shouldIgnore) {
-
- this[IGNORE] = shouldIgnore;
- Sync.call(this, pattern, options);
- }
- util.inherits(GlobSync, Sync);
- GlobSync.prototype._readdir = function(abs, inGlobStar) {
-
- const marked = this._mark(abs);
- if (this[IGNORE](marked)) {
- return null;
- }
- return Sync.prototype._readdir.call(this, abs, inGlobStar);
- };
- module.exports = GlobSync;
|