Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions