-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
fs.readdir's new recursive option is not fully documented #48640
Copy link
Copy link
Closed
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
Description
Activity
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
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.