Lines Matching refs:cb
62 function glob (pattern, options, cb) { argument
63 if (typeof options === 'function') cb = options, options = {}
67 if (cb)
72 return new Glob(pattern, options, cb)
117 function Glob (pattern, options, cb) { argument
119 cb = options
124 if (cb)
130 return new Glob(pattern, options, cb)
144 if (typeof cb === 'function') {
145 cb = once(cb)
146 this.on('error', cb)
148 cb(null, matches)
217 Glob.prototype._realpathSet = function (index, cb) { argument
220 return cb()
227 return cb()
245 cb()
295 Glob.prototype._process = function (pattern, index, inGlobStar, cb) { argument
297 assert(typeof cb === 'function')
304 this._processQueue.push([pattern, index, inGlobStar, cb])
322 this._processSimple(pattern.join('/'), index, cb)
359 return cb()
363 this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)
365 this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)
368 Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { argument
371 return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
375 …prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { argument
379 return cb()
408 return cb()
434 return cb()
449 this._process([e].concat(remain), index, inGlobStar, cb)
451 cb()
492 Glob.prototype._readdirInGlobStar = function (abs, cb) { argument
499 return this._readdir(abs, false, cb)
510 return cb()
519 cb()
521 self._readdir(abs, false, cb)
525 Glob.prototype._readdir = function (abs, inGlobStar, cb) { argument
529 cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb)
530 if (!cb)
535 return this._readdirInGlobStar(abs, cb)
540 return cb()
543 return cb(null, c)
547 self.fs.readdir(abs, readdirCb(this, abs, cb))
550 function readdirCb (self, abs, cb) { argument
553 self._readdirError(abs, er, cb)
555 self._readdirEntries(abs, entries, cb)
559 Glob.prototype._readdirEntries = function (abs, entries, cb) { argument
578 return cb(null, entries)
581 Glob.prototype._readdirError = function (f, er, cb) { argument
620 return cb()
623 Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { argument
626 self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)
631 …rototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { argument
637 return cb()
646 this._process(noGlobStar, index, false, cb)
653 return cb()
662 this._process(instead, index, true, cb)
665 this._process(below, index, true, cb)
668 cb()
671 Glob.prototype._processSimple = function (prefix, index, cb) { argument
676 self._processSimple2(prefix, index, er, exists, cb)
679 Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { argument
688 return cb()
759 self._stat2(f, abs, null, lstat, cb)
761 self._stat2(f, abs, er, stat, cb)
764 self._stat2(f, abs, er, lstat, cb)
769 Glob.prototype._stat2 = function (f, abs, er, stat, cb) { argument
772 return cb()
779 return cb(null, false, stat)
787 return cb()
789 return cb(null, c, stat)