I\'m trying to get a list of the names of all the files present in a directory using Node.js. I want output that is an array of filenames. How can I do this?
I usually use: FS-Extra.
const fileNameArray = Fse.readdir('/some/path');
Result:
[ "b7c8a93c-45b3-4de8-b9b5-a0bf28fb986e.jpg", "daeb1c5b-809f-4434-8fd9-410140789933.jpg" ]