I am looking to loop over files in a folder. I will not know what the names of the files will be when running the script, I just want to get the names.
I want it to run like this, but I can't figure out how. I understand why this does not work, but I do not understand how to make it work the way I want.
for (file in "./levels/") {
console.log(file)
}
is there a way to make it run like this?