Lines Matching full:if

10 //   If there is no more remaining, then stat(PREFIX) and
11 // add to matches if it succeeds. END.
13 // If inGlobStar and PREFIX is symlink and points to dir
16 // If fail, END
19 // If pattern[n] is GLOBSTAR
32 // If fails, continue
33 // If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])
63 if (typeof options === 'function') cb = options, options = {}
64 if (!options) options = {}
66 if (options.sync) {
67 if (cb)
82 if (add === null || typeof add !== 'object') {
101 if (!pattern)
104 if (set.length > 1)
108 if (typeof set[0][j] !== 'string')
118 if (typeof options === 'function') {
123 if (options && options.sync) {
124 if (cb)
129 if (!(this instanceof Glob))
144 if (typeof cb === 'function') {
159 if (this.noprocess)
162 if (n === 0)
173 if (self._processing <= 0) {
174 if (sync) {
187 if (this.aborted)
190 if (this.realpath && !this._didRealpath)
198 if (this._didRealpath)
204 if (n === 0)
212 if (--n === 0)
219 if (!matchset)
226 if (n === 0)
231 // If there's a problem with the stat, then it means that
236 if (!er)
238 else if (er.syscall === 'stat')
243 if (--n === 0) {
265 if (!this.paused) {
272 if (this.paused) {
275 if (this._emitQueue.length) {
283 if (this._processQueue.length) {
299 if (this.aborted)
303 if (this.paused) {
317 // see if there's anything else
320 // if not, then this is rather simple
343 if (prefix === null)
345 else if (isAbsolute(prefix) ||
349 if (!prefix || !isAbsolute(prefix))
357 //if ignored, skip _processing
358 if (childrenIgnored(this, read))
362 if (isGlobStar)
377 // if the abs isn't a dir, then nothing can match!
378 if (!entries)
381 // It will only match dot entries if it starts with a dot, or if
391 if (e.charAt(0) !== '.' || dotOk) {
393 if (negate && !prefix) {
398 if (m)
406 // If there are no matched entries, then nothing matches.
407 if (len === 0)
410 // if this is the last remaining pattern bit, then no need for
415 if (remain.length === 1 && !this.mark && !this.stat) {
416 if (!this.matches[index])
421 if (prefix) {
422 if (prefix !== '/')
428 if (e.charAt(0) === '/' && !this.nomount) {
443 if (prefix) {
444 if (prefix !== '/')
455 if (this.aborted)
458 if (isIgnored(this, e))
461 if (this.paused) {
468 if (this.mark)
471 if (this.absolute)
474 if (this.matches[index][e])
477 if (this.nodir) {
479 if (c === 'DIR' || Array.isArray(c))
486 if (st)
493 if (this.aborted)
497 // just proceed as if this is a non-globstar situation
498 if (this.follow)
505 if (lstatcb)
509 if (er && er.code === 'ENOENT')
515 // If it's not a symlink or a dir, then it's definitely a regular file.
517 if (!isSym && lstat && !lstat.isDirectory()) {
526 if (this.aborted)
530 if (!cb)
534 if (inGlobStar && !ownProp(this.symlinks, abs))
537 if (ownProp(this.cache, abs)) {
539 if (!c || c === 'FILE')
542 if (Array.isArray(c))
552 if (er)
560 if (this.aborted)
563 // if we haven't asked to stat everything, then just
566 if (!this.mark && !this.stat) {
569 if (abs === '/')
582 if (this.aborted)
591 if (abs === this.cwdAbs) {
609 if (this.strict) {
611 // If the error is handled, then we abort
612 // if not, we threw out of here
615 if (!this.silent)
636 if (!entries)
651 // If it's a symlink, and we're in a globstar, then stop
652 if (isSym && inGlobStar)
657 if (e.charAt(0) === '.' && !this.dot)
683 if (!this.matches[index])
686 // If it doesn't exist, then just mark the lack of results
687 if (!exists)
690 if (prefix && isAbsolute(prefix) && !this.nomount) {
692 if (prefix.charAt(0) === '/') {
696 if (trail)
701 if (process.platform === 'win32')
714 if (f.length > this.maxLength)
717 if (!this.stat && ownProp(this.cache, abs)) {
720 if (Array.isArray(c))
724 if (!needDir || c === 'DIR')
727 if (needDir && c === 'FILE')
731 // if we know it exists, but not what it is.
736 if (stat !== undefined) {
737 if (stat === false)
741 if (needDir && type === 'FILE')
750 if (statcb)
754 if (lstat && lstat.isSymbolicLink()) {
755 // If it's a symlink, then treat it as the target, unless
758 if (er)
770 if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
778 if (abs.slice(-1) === '/' && stat && !stat.isDirectory())
782 if (stat)
786 if (needDir && c === 'FILE')