S
S
SaziX13372021-01-01 22:13:14
Node.js
SaziX1337, 2021-01-01 22:13:14

How to read multiple files from multiple folders at once in JavaScript?

I don't understand how to read multiple files from multiple folders at the same time via the fs module.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GrayHorse, 2021-01-02
@GrayHorse

If you need to do something in parallel , you need to use multithreading.
https://nodejs.org/api/worker_threads.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question