For an extension I'm doing I want to match the uri.path of a newly opened file to a pair of include/exclude GlobPatterns.
I've found fileSearch() API that operates on GlobPatterns, but is overkill for this; I already have a file-path, just want to see if it satisfies the Globs.
Is there a simple "match" function for GlobPatterns?