[Feature] glob/crawl by symlink path, not real path
IanVS opened this issue · 8 comments
As noted in #23 (comment), currently globs match against resolved symlink paths, not the symlink paths themselves. This is a bit counter-intuitive, and I think that the symlink paths should be matched and returned instead, perhaps with an option to return real paths instead.
Yep, I copied over the src
from master and it's now working correctly! Thanks!
Will release v5.3.0 then
@IanVS done. I changed the API a bit to be backwards compatible with v5 so check the docs to see how you can use it.
Thanks. One small piece of unsolicited feedback, is that this might fall into the boolean trap. When reading .withSymlinks(false)
it could reasonably be thought that symlinks are disabled. An API like .withSymlinks({ resolve: boolean })
gives a bit more clarity, IMHO. But, that's just my own two cents. Thanks again for getting this released so quickly!
One small piece of unsolicited feedback, is that this might fall into the boolean trap.
I agree. I'll be making some breaking changes in v6.0 so this API is definitely not final. There's a lot of confusion in the current exposed methods so I will do some much needed renaming as well.