neosphere
neosphere copied to clipboard
Consider whether to use proper globbing in Cell files()
files() currently uses a very rudimentary globbing implementation wherein only the final portion of the given pattern can contain wildcards. Any directory information in the pattern is used verbatim. With the introduction of FS.match(), there is now a much more powerful pattern matcher built in which can support, e.g. globstars (**) and bracket notation. Consider using that for files() as well.
This is technically a breaking change, but the existing pattern structure is so simple that most existing Cellscripts shouldn't be affected.