-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Support bufferSize
option with recursive mode in fs.opendir
#55764
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
If someone would like to submit a fix here, I'm happy to help you land the contribution. Otherwise, I'll work on it eventually. |
Hey I would love to work on this! |
Awesome! Feel free to request my review on your PR. I'll keep track of notifications here as well. Reach out to me in the OpenJS Slack if you have any questions |
I'm here if you need help |
@Ethan-Arrowood Can you clarify what further changes is needed in |
@KunalKumar-1 from what i saw its was a temporary patch to get around the problem. probably have to rewrite this. |
Yes, the changes I added does not actually respect the My loose idea for a solution would be to add a new queue to the |
Now I understood the issue clearly |
@KunalKumar-1 cool but i was working on this! |
I will be doping this issue, as I was unable to coming with any good solution for this, you can see the draft PR, if you want to know my approach! Ya! that will be it! |
I would like to take up this issue |
@Ethan-Arrowood, it’s been two weeks since I opened this PR #55896 When you have some time, could you please take a look? |
Hey, I would like to pick this up if not done. Let me know. |
Related to: #48820 and #55744
After the
recursive
option was added toreaddir
andopendir
, it was noted that when specifyingbufferSize
alongsiderecursive: true
, the result ofopendir
was incorrect. This is fixed in #55744 . However, the fix is a naive solution, and doesn't properly respect thebufferSize
option. Furthermore, it could result in a blocked event loop. This should be fixed.I recommend reading the discussion in #48820 for more information. This should only involve changes to the
Dir
class inlib/internal/fs/dir.js
.The text was updated successfully, but these errors were encountered: