matchesAnyGlob static method

bool matchesAnyGlob(
  1. String path,
  2. List<String> globs,
  3. String root
)

Whether path matches one of globs, with the same matching as --exclude-globs (as given, absolute, or relative to root). For callers that pick files outside discovery but must still honor the user's globs.

Implementation

static bool matchesAnyGlob(String path, List<String> globs, String root) =>
    _matchesExcludeGlob(path, globs.map(_globToRegex).toList(), root);