Skip to content

Behavior of fs.glob #18

@daelvn

Description

@daelvn

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions