LucaMs Expert Licensed User Longtime User May 20, 2018 #1 For the first time (I think) I listed by code the files contained in DirAssets folder. Code: Copy For Each NomeFile As String In File.ListFiles(File.DirAssets) If NomeFile.EndsWith(".jpg") _ Or NomeFile.EndsWith(".jpeg") _ Or NomeFile.EndsWith(".png") Then mlstFloors.Add(NomeFile) End If Next I don't know why I get also 2 files of an old project; I have not opened this old project for weeks. Watching right now my own code, there may also be other files, since the code filters them according to their extension. P.S. ... and it is so: The only file of the current project is "laymain.bal"; I don't know where others come from ("charge1.mp3.unpacked"??????????? Never added to any project; and probably not even "charge1.mp3"). P.P.S. "charge1.mp3" was a file of a member I tried to help I helped Last edited: May 20, 2018
For the first time (I think) I listed by code the files contained in DirAssets folder. Code: Copy For Each NomeFile As String In File.ListFiles(File.DirAssets) If NomeFile.EndsWith(".jpg") _ Or NomeFile.EndsWith(".jpeg") _ Or NomeFile.EndsWith(".png") Then mlstFloors.Add(NomeFile) End If Next I don't know why I get also 2 files of an old project; I have not opened this old project for weeks. Watching right now my own code, there may also be other files, since the code filters them according to their extension. P.S. ... and it is so: The only file of the current project is "laymain.bal"; I don't know where others come from ("charge1.mp3.unpacked"??????????? Never added to any project; and probably not even "charge1.mp3"). P.P.S. "charge1.mp3" was a file of a member I tried to help I helped
LucaMs Expert Licensed User Longtime User May 21, 2018 #2 Nice; today they are different: (only two of those file are used in the current project, avatarmario.jpg and laymain.bal; the others seem to be folders, since they do not have extension. Hm... but it's not just a question of types, files or folders, since yesterday were also listed "normal" files) Upvote 0
Nice; today they are different: (only two of those file are used in the current project, avatarmario.jpg and laymain.bal; the others seem to be folders, since they do not have extension. Hm... but it's not just a question of types, files or folders, since yesterday were also listed "normal" files)
Erel B4X founder Staff member Licensed User Longtime User May 21, 2018 #3 Using ListFiles with File.DirAssets is problematic as DirAssets is a special folder. You know which files are there as these are the files you added to your project. If you want to have a list of the files then add a text file with all the file names. Upvote 0
Using ListFiles with File.DirAssets is problematic as DirAssets is a special folder. You know which files are there as these are the files you added to your project. If you want to have a list of the files then add a text file with all the file names.