node-directory-tree
node-directory-tree copied to clipboard
filter filename by regex?
Hi
would this feature supported in future?
for example, filter out all the file not matching the regex
Hi! To be fair, this is kind of implemented already, as in the extension filtering is implemented to support regex. So we could pretty much replace "extension" with filename filtering, or something like that. It would be probably closer to being correct, as there could be files with ".some.multi.extension" which might confuse things.
Maybe I'll get soon to adding this or feel free to submit a PR. 🙏