Skip to content

use stream instead of fs.readdir() #1471

@ORESoftware

Description

@ORESoftware

I have this question on SO:
https://stackoverflow.com/questions/52131509/read-large-directory-with-nodejs

say we have a directory of 10,000,000 items or whatever. Instead of reading all paths into memory, it would be nice to be able to read the directory about 15,000 items concurrently.

Does Node.js offer a way to do that? Even with Unix child processes, still not sure how to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions