lpath icon indicating copy to clipboard operation
lpath copied to clipboard

Behavior of `fs.glob`

Open daelvn opened this issue 1 year ago • 2 comments

I am looking to use lpath in my own project. Upon testing, I found that the wildcards didn't work as I would expect them to. If I do fs.glob "./*", it lists all subnodes recursively. However, if I do fs.glob "./*.lua", it will not match all .lua files recursively, only at the top level. Using a double star (./**.lua) changes nothing.

There is no documented behavior for this function. Would it be possible to have a section explaining how it works? And how would I be able to match all subnodes recursively with a certain extension using a glob iterator?

daelvn avatar Jan 23 '23 01:01 daelvn