Getting files in a folder?

Is there an (easy) way to get all the files in one of the subfolders of Assets? I know you can get each file in the folder if you know the absolute path, but I can’t seem to find a way to get the absolute path from the AssetManager, I assume because Assets becomes a .jar file and the path is relative anyway. Anyway, would it be possible to read each of the files’ names in, say, the Models folder and list them in a String array or something?

In general, this is not possible. Class resources (which is what AssetManager is using in this case) have no concept of folders, really. You can access specific resources and that’s it.

Just make an ANT target listing all your files into some text file when you build and use that.