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
After the recursive option was added to readdir and opendir, it was noted that when specifying bufferSize alongside recursive: true, the result of opendir was incorrect. This is fixed in #55744 . However, the fix is a naive solution, and doesn't properly respect the bufferSize 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 in lib/internal/fs/dir.js.
Related to: #48820 and #55744
After the
recursiveoption was added toreaddirandopendir, it was noted that when specifyingbufferSizealongsiderecursive: true, the result ofopendirwas incorrect. This is fixed in #55744 . However, the fix is a naive solution, and doesn't properly respect thebufferSizeoption. 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
Dirclass inlib/internal/fs/dir.js.