index.js
function file_path () {
      pending++
      for (var i = globs.length; i--;) {
        const glob = globs[i]
        const glob_full = glob.glob
        const glob_base = glob.base
        const glob_negated = glob.negated
        const glob_pattern = glob.pattern
        if (entry === glob_full || mm.isMatch(entry, glob_pattern, ALLOW)) {
          return done(null, file)
        }
      }

      // Did not match globs
      pending--
      done(null, null)
    }
function file_path () {
      pending++
      for (var i = globs.length; i--;) {
        const glob = globs[i]
        const glob_full = glob.glob
        const glob_base = glob.base
        const glob_negated = glob.negated
        const glob_pattern = glob.pattern
        if (entry === glob_full || mm.isMatch(entry, glob_pattern, ALLOW)) {
          return done(null, file)
        }
      }

      // Did not match globs
      pending--
      done(null, null)
    }
function file_path ( ) { pending ++ for ( var i = globs . length ; i -- ; ) { const glob = globs [ i ] const glob_full = glob . glob const glob_base = glob . base const glob_negated = glob . negated const glob_pattern = glob . pattern if ( entry === glob_full || mm . isMatch ( entry , glob_pattern , ALLOW ) ) { return done ( null , file ) } } // Did not match globs pending -- done ( null , null ) }
If path is file, verify against globs
If path is file verify against globs