Skip to content

Add depth/breadth first search algorithms to recursive readdir #41709

Closed as not planned
@Ethan-Arrowood

Description

@Ethan-Arrowood

What is the problem this feature will solve?

Continuation of #34992 and #41439

This feature will add specific algorithm support to the upcoming recursive readdir feature I'm working on in #41439

What is the feature you are proposing to solve the problem?

The api should be extended to include a new parameter to the options object with the type:

{
  algorithm?: 'depth-first' | 'breadth-first'
}

I've already stubbed out tests for this feature based on the early work in #41439 see this fork-branch for more details:
https://github.com/Ethan-Arrowood/node/tree/feature/recursive-readdir-dfs-bfs

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.fsIssues and PRs related to the fs subsystem / file system.stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions