You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
Subsystem
fs
What steps will reproduce the bug?
Ensure a directory tree with symlink, e.g.
./
../
mylink -> ../other_dir/
fs.readdirSync('.', { recursive: true })
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
[ './mylink' ]
What do you see instead?
All files under ../other_dir/ are listed.
Additional information
This behavior is extremely surprising and error-prone, since common commands like find or Get-ChildItem does not follow symlink by default.
In addition, it is not documented.
The text was updated successfully, but these errors were encountered:
Version
v21.6.2
Platform
Linux 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC x86_64 x86_64 x86_64 GNU/Linux
Subsystem
fs
What steps will reproduce the bug?
fs.readdirSync('.', { recursive: true })
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
[ './mylink' ]
What do you see instead?
All files under
../other_dir/
are listed.Additional information
This behavior is extremely surprising and error-prone, since common commands like
find
orGet-ChildItem
does not follow symlink by default.In addition, it is not documented.
The text was updated successfully, but these errors were encountered: