A file globbing library.
fileglob is a glob library that uses gobwas/glob underneath
and returns only matching files or direcories, depending on the configuration. Due to this great foundation,
- Asterisk wildcards (
- Super-asterisk wildcards (
- Single symbol wildcards (
- Character list matchers with negation and ranges (
- Alternative matchers (
- Nested globbing (
- Escapable wildcards (
By also building on top of spf13/afero, a range of alternative filesystems as well as custom filesystems are supported. For example, an in-memory filesystem can be used (
gobwas/glob is very well implemented: it has
a lexer, compiler, and all that, which seems like a better approach than most
libraries do: regex.