is it possible to use ecma js on a website to find files in a folder like so?  :
```
var dirs = // . . . get directory names
dirs.forEach((o, r) => {
  fetch(window.location + o)
    .then((response) => {
      return response.body
    })
    .then((b) => {
       return b.split("\n")
    })
})
``` Wrap the entire output in JSON format.
user