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

feat: add support for excluding symlinks #115

Closed SuperchupuDev closed 1 month ago

SuperchupuDev commented 2 months ago

when resolveSymlinks is not set, symlinks just get treated as files. this adds support for individually excluding symlinks from the result

why? because fdir currently has ways of excluding files and directories, but not symlinks (and also because it was requested in SuperchupuDev/tinyglobby#26)

thecodrr commented 1 month ago

We also need to not build resolveSymlinks function when excludeSymlinks is true.

SuperchupuDev commented 1 month ago

done, let me know if i should change anything else :pray: