Add glob option to ignore hidden files by joshmgross · Pull Request #1791 · actions/toolkit (original) (raw)

This PR adds an option to the glob package to exclude hidden files. This includes:

  1. Any directory starting with .
  2. Any file starting with .
  3. Any files within a directory starting with .

This currently does not check for the hidden attribute that can be set on Windows files. Based on the discussion in nodejs/node#38809, this isn't natively supported in Node at the moment.
I'm open to working around that limitation, but the primary focus here is for files and directories that use the . naming convention.