fs: ensure readdir() callback is only called once
This commit ensures that the readdir() callback can only be called once when the withFileTypes parameter is supplied. PR-URL: https://github.com/nodejs/node/pull/22793 Fixes: https://github.com/nodejs/node/issues/22778 Reviewed-By:Bryan English <bryan@bryanenglish.com> Reviewed-By:
Anatoli Papirovski <apapirovski@mac.com> Reviewed-By:
Minwoo Jung <minwoo@nodesource.com>
parent
aa05c8b1
Please register or sign in to comment