Roberto P. Well-Known Member Licensed User Longtime User Jun 25, 2015 #1 I read the list of files that I put in a subfolder of files, called img (contains images) if I add the subfolder name to File.DirAssets by mistake. here are the commands that I use Code: Copy Dim aPath As String = File.DirAssets & "/img" Log(aPath) aListaFiles = File.ListFiles(aPath) For i = 0 To aListaFiles.Size - 1 aFile = aListaFiles.Get(i) Log(aFile) Next someone knows help thanks
I read the list of files that I put in a subfolder of files, called img (contains images) if I add the subfolder name to File.DirAssets by mistake. here are the commands that I use Code: Copy Dim aPath As String = File.DirAssets & "/img" Log(aPath) aListaFiles = File.ListFiles(aPath) For i = 0 To aListaFiles.Size - 1 aFile = aListaFiles.Get(i) Log(aFile) Next someone knows help thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2015 #2 It is not possible to list the files in a subfolder inside the assets folder. Upvote 0
Roberto P. Well-Known Member Licensed User Longtime User Jun 25, 2015 #3 thanks Erel there is a folder where I can create a subfolder with images? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 25, 2015 #4 You can use a sub folder in the Files folder. However you cannot call ListFiles on that folder. For example: https://www.b4x.com/android/forum/threads/organizing-dirassets.26789/#post-154946 Upvote 0
You can use a sub folder in the Files folder. However you cannot call ListFiles on that folder. For example: https://www.b4x.com/android/forum/threads/organizing-dirassets.26789/#post-154946