Answer the question
In order to leave comments, you need to log in
Is it possible to get a list of files?
There is a simple html page with a JS script, there is a media folder with music, how can I get the names of all files in this folder?
I'm trying to make a simple player on Vue, but I can't figure out how to scan a folder, so that I can then output all the audio on the page for inclusion.
I thought to do it through fs, but this stray seems to be only for server-side JS (or I did something wrong), please help.
Answer the question
In order to leave comments, you need to log in
And where exactly "there is a media folder with music" - on the machine where the browser is running; or on the server where the script is loaded from?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question