Skip to content

fs: ensure readdir() callback is only called once

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/withfiletypes into master

This commit ensures that the readdir() callback can only be called once when the withFileTypes parameter is supplied.

Fixes: https://github.com/nodejs/node/issues/22778

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading