Skip to content

path: add `path.glob`

Rodrigo Muino Tomonari requested to merge github/fork/MoLow/add-path-glob into main

an alternative for https://github.com/nodejs/node/pull/47486 (suggested at https://github.com/nodejs/node/issues/40731#issuecomment-1499963342)

as my experience in cpp is much more limited than in js - this code probably has many issues, so feel free to comment on anything.

the glob implementation is used from the linux kernel, it complies with https://man7.org/linux/man-pages/man7/glob.7.html, and is licenced under MIT

this implementation lacks some features that minimatch has such as brace expansion, but according to my tests Python comes with a similar implementation: https://docs.python.org/3/library/glob.html

Merge request reports

Loading