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.
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, therecursiveoption does not work withwithFileTypes: true.The behavior of the
recursiveoption is not documented, and onlyrecursive's type and default value are present in the documentation. The callback-asyncfs.readdirand the synchronousfs.readdirSyncyield erraneous results (entries missing or appear with missing fields) when bothrecursiveandwithFileTypesare supplied.This issue tracks missing documentation. Incorrect behavior is tracked at #48858.