Lines Matching full:if
19 if (typeof options === 'function' || arguments.length === 3)
27 if (!pattern)
30 if (typeof options === 'function' || arguments.length === 3)
34 if (!(this instanceof GlobSync))
39 if (this.noprocess)
52 if (this.realpath) {
62 if (er.syscall === 'stat')
84 // See if there's anything else
87 // if not, then this is rather simple
110 if (prefix === null)
112 else if (isAbsolute(prefix) ||
116 if (!prefix || !isAbsolute(prefix))
124 //if ignored, skip processing
125 if (childrenIgnored(this, read))
129 if (isGlobStar)
139 // if the abs isn't a dir, then nothing can match!
140 if (!entries)
143 // It will only match dot entries if it starts with a dot, or if
153 if (e.charAt(0) !== '.' || dotOk) {
155 if (negate && !prefix) {
160 if (m)
166 // If there are no matched entries, then nothing matches.
167 if (len === 0)
170 // if this is the last remaining pattern bit, then no need for
175 if (remain.length === 1 && !this.mark && !this.stat) {
176 if (!this.matches[index])
181 if (prefix) {
182 if (prefix.slice(-1) !== '/')
188 if (e.charAt(0) === '/' && !this.nomount) {
203 if (prefix)
213 if (isIgnored(this, e))
218 if (this.mark)
221 if (this.absolute) {
225 if (this.matches[index][e])
228 if (this.nodir) {
230 if (c === 'DIR' || Array.isArray(c))
236 if (this.stat)
243 // just proceed as if this is a non-globstar situation
244 if (this.follow)
253 if (er.code === 'ENOENT') {
262 // If it's not a symlink or a dir, then it's definitely a regular file.
264 if (!isSym && lstat && !lstat.isDirectory())
275 if (inGlobStar && !ownProp(this.symlinks, abs))
278 if (ownProp(this.cache, abs)) {
280 if (!c || c === 'FILE')
283 if (Array.isArray(c))
296 // if we haven't asked to stat everything, then just
299 if (!this.mark && !this.stat) {
302 if (abs === '/')
323 if (abs === this.cwdAbs) {
340 if (this.strict)
342 if (!this.silent)
354 if (!entries)
369 // If it's a symlink, and we're in a globstar, then stop
370 if (isSym && inGlobStar)
375 if (e.charAt(0) === '.' && !this.dot)
392 if (!this.matches[index])
395 // If it doesn't exist, then just mark the lack of results
396 if (!exists)
399 if (prefix && isAbsolute(prefix) && !this.nomount) {
401 if (prefix.charAt(0) === '/') {
405 if (trail)
410 if (process.platform === 'win32')
422 if (f.length > this.maxLength)
425 if (!this.stat && ownProp(this.cache, abs)) {
428 if (Array.isArray(c))
432 if (!needDir || c === 'DIR')
435 if (needDir && c === 'FILE')
439 // if we know it exists, but not what it is.
444 if (!stat) {
449 if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) {
455 if (lstat && lstat.isSymbolicLink()) {
469 if (stat)
474 if (needDir && c === 'FILE')