A
A
Alexander Tarkovsky2017-04-08 14:48:22
JavaScript
Alexander Tarkovsky, 2017-04-08 14:48:22

Node.js / Express.js - How to get the contents of a directory and all subdirectories in the search?

Good afternoon. Such a question: how to display the contents of a folder and all its child folders? There is a project manager for patterns where you need to create and modify the contents of some files and folders. View engine - Handlebars + Express.js for the server. I would be grateful for any help, I have already broken my whole head and all the documentation and Habr flipped through a couple of times.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2017-04-08
@maximtark

Is there a file manager for the admin panel? https://www.npmjs.com/package/express-file-manager

O
Oleg, 2017-04-08
@werty1001

fs.readdir

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question