neosphere icon indicating copy to clipboard operation
neosphere copied to clipboard

Consider whether to use proper globbing in Cell files()

Open fatcerberus opened this issue 6 years ago • 0 comments

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.

fatcerberus avatar Nov 16 '19 06:11 fatcerberus