Closed
Description
Affected URL(s)
https://nodejs.org/dist/latest-v20.x/docs/api/fs.html#fspromisesreaddirpath-options and callback/synchronous versions
Description of the problem
From testing, the recursive
option does not work with withFileTypes: true
.
The behavior of the recursive
option is not documented, and only recursive
's type and default value are present in the documentation. The callback-async fs.readdir
and the synchronous fs.readdirSync
yield erraneous results (entries missing or appear with missing fields) when both recursive
and withFileTypes
are supplied.
This issue tracks missing documentation. Incorrect behavior is tracked at #48858.