I need to list all the files in the JavaScript thingy, such as using "ls".
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unprivileged JavaScript in a browser can neither list files nor execute programs for security reasons.
In Node.js, for example, executing programs works like this:
And there is a direct way to list files using readdir().