-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
follow: true
doesn't follow more that 1 symbolic link
#579
Comments
follow: true
doesn't follow more that 1 symbolic link
@isaacs any thoughts on this? 🤔 |
Seems to be working as intended to me, no?
|
In the given example, shouldn't I see that |
@pamelalozano16 Yeah, this is interesting. It's not actually a directory, so maybe it should be included. But you've set @frontzhm 请在此处的评论中使用英语。 |
+1 for treating symlinks to directories as directories with |
@nex3 Yeah, I've noodled on it more since posting that comment earlier today, and I think you're right. |
Will publish once CI says it's ok |
"By default, a ** in a pattern will follow 1 symbolic link if it is not the first item in the pattern, or none if it is the first item in the pattern, following the same behavior as Bash.". However, some dependent modules contain multiple nested symbolic links, and the option follow: true only operates for a single level of symlinks.
dir_foo
dir_bar
dir_baz
In this case
glob.sync('dir_baz/**', {follow:true, nodir:true})
returnsfoo
instead offoo.txt
.The text was updated successfully, but these errors were encountered: