Closed SuperchupuDev closed 2 months ago
hi @thecodrr, any chance you can take a look at this anytime soon? symlinks wont quite work in my library until this (or an equivalent solution) is merged
yes, that commit is what this PR aims to implement, but #81 removed the withSymlinks
parameter that commit introduced. i can rename this pr to make that clearer
changing it to lstat makes this test fail as it makes it return non-resolved symlinks
@thecodrr i've reverted the lstat
change, it makes behavior the same as if not using withSymlinks
at all for some reason. not to worry though as it seems to work as intended with stat
@thecodrr is there anything blocking the PR?
While working on
tinyglobby
I've noticed there is no way to disablefdir
returning the real path of a symlink anymore, due to #81 silently removing support for it (even though the documentation still mentions the feature!).This PR adds it back, inside an object parameter instead for better API design (see https://github.com/thecodrr/fdir/issues/83#issuecomment-1282787956). It defaults to
true
for backwards compatibilityCloses #103