Hi there,
It aims to implement glob matching without touching the filesystem. That is, if a path is returned by Path.wildcard(glob, opts), then PathGlob.match?(path, glob, opts) should return true. This is much more performant in cases where we have a single path to check against a glob, and the glob would result in a lot of filesystem traversal.
I wonder whether this would be a candidate for inclusion into core Elixir? It seems that it might be generally useful and it complements the functionality already provided by Path.wildcard/2.
The parser is implemented with nimble_parsec. I presume that if it were included into Elixir core then we wouldn't want that dependency, but we could check in the generated parser source to avoid it.
Cheers,
Jon