def any_glob_matches?(globs_or_glob, file)
      get_abs_and_rel_path(file).any? do |path|
        Array(globs_or_glob).any? do |glob|
          ::File.fnmatch?(glob, path,
                          ::File::FNM_PATHNAME | # Wildcards don't match path separators
                          ::File::FNM_DOTMATCH)  # `*` wildcard matches dotfiles
        end
      end
    end
def any_glob_matches?(globs_or_glob, file)
      get_abs_and_rel_path(file).any? do |path|
        Array(globs_or_glob).any? do |glob|
          ::File.fnmatch?(glob, path,
                          ::File::FNM_PATHNAME | # Wildcards don't match path separators
                          ::File::FNM_DOTMATCH)  # `*` wildcard matches dotfiles
        end
      end
    end
Returns whether a glob pattern (or any of a list of patterns) matches the
 specified file.

 This is defined here so our file globbing options are consistent
 everywhere we perform globbing.

 @param glob [String, Array]
 @param file [String]
 @return [Boolean]