Android Question Subfolders in Asset Directory

kohle

Active Member
Licensed User
Longtime User
Hi, I need subfolders in the asset directory. File.exists dont recognize the folder.
ex.
If File.Exists(File.DirAssets & "/dist","index.html") Then


What can I do without putting all files in the FILES directory ?


rgs
J.
 

DonManfred

Expert
Licensed User
Longtime User
Subfolders are not officially supported in DirAssets.

It works though.
Create a textfile about the files and the folders.
Use this file then to know what is there.
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
File.Exist does not work with File.DirAssets because you are the only person that can add files in there during the development of an app, so it's supposed that you know exactly which files are in there and which are not.
 
Upvote 0
Top