thecodrr / fdir

⚡ The fastest directory crawler & globbing library for NodeJS. Crawls 1m files in < 1s
https://thecodrr.github.io/fdir/
MIT License
1.51k stars 58 forks source link

Fix flat crawling for crawlWithOptions API #82

Closed DZakh closed 1 year ago

DZakh commented 2 years ago

It's impossible to set maxWidth: 0 with the crawlWithOptions. That's needed when you want to get files from the directory itself.

thecodrr commented 2 years ago

Hey, thanks for this! This was an edge case I missed. I'll try and add this in as soon as #81 is done.

thecodrr commented 1 year ago

Closing this as #81 fixed this by removing the unnecessary if condition.