List assets in a subdirectory using AssetManager.list

后端 未结 9 629
梦谈多话
梦谈多话 2020-12-04 23:37

My application has an assets directory in which I\'ve dumped a bunch of text files I need to load at runtime.

I have a directory full of assets of a particular type

9条回答
  •  心在旅途
    2020-12-05 00:15

    This solution seems working for me: Keep a copy of each file you want to access from a sub directory in the assets directory too. Use same convention. i.e. list("subdirectory")

    It doesn't read the files in assets folder, but reads all "copied" files in its sub directory. Weird!! But works!

提交回复
热议问题