Directory.getFiles equivalent for webGL?

As the title indicates, is there a way to get a list of the names of all the files in the streaming assets folder?

I would suggest having a manifest file containing a list of filenames? Though, there might be other ways to do that depending on the server.

that is extremely inconvenient.