Symlinks can cause the glob mechanism to enter an infinite loop. One approach to limit this is to opt out from following links (as suggested in #62), and another one that can be useful to keep the normal behavior of following symlinks while protecting from buggy / malicious directory patterns would be to allow limiting the depth we glob into, which would be a useful feature in MatchOptions.
Symlinks can cause the glob mechanism to enter an infinite loop. One approach to limit this is to opt out from following links (as suggested in #62), and another one that can be useful to keep the normal behavior of following symlinks while protecting from buggy / malicious directory patterns would be to allow limiting the depth we glob into, which would be a useful feature in
MatchOptions.