ilan Expert Licensed User Longtime User Jul 11, 2021 #1 hi i am running a check if a file exists in the file dirassests folder but I am getting FALSE even though the file exists! Waiting for debugger to connect... Program started. file exists: false '<<<<< Click to expand...
hi i am running a check if a file exists in the file dirassests folder but I am getting FALSE even though the file exists! Waiting for debugger to connect... Program started. file exists: false '<<<<< Click to expand...
ilan Expert Licensed User Longtime User Jul 11, 2021 #2 simple example: Attachments fileExist.zip fileExist.zip 1.9 KB · Views: 352 Upvote 0
klaus Expert Licensed User Longtime User Jul 11, 2021 #3 From the help: Returns true if the specified FileName exists in the specified Dir. Note that the Android file system is case sensitive. This method should not be used with File.DirAssets. Upvote 0
From the help: Returns true if the specified FileName exists in the specified Dir. Note that the Android file system is case sensitive. This method should not be used with File.DirAssets.
ilan Expert Licensed User Longtime User Jul 11, 2021 #4 klaus said: From the help: Returns true if the specified FileName exists in the specified Dir. Note that the Android file system is case sensitive. This method should not be used with File.DirAssets. Click to expand... hi Klaus, i am using b4j not b4a and the name is exactly as in the folder. see the example i have uploaded. i had never problems with checking if a file exists in file.dirassets folder not with b4a, b4i or b4j. Last edited: Jul 11, 2021 Upvote 0
klaus said: From the help: Returns true if the specified FileName exists in the specified Dir. Note that the Android file system is case sensitive. This method should not be used with File.DirAssets. Click to expand... hi Klaus, i am using b4j not b4a and the name is exactly as in the folder. see the example i have uploaded. i had never problems with checking if a file exists in file.dirassets folder not with b4a, b4i or b4j.
klaus Expert Licensed User Longtime User Jul 11, 2021 #5 Sorry, I was reasoning in B4A. Then, I looked at B4J File Help, and the text is the same. Then I tested your project with older B4J versions, even with B4J version 7.51 and it always returns False !? Upvote 0
Sorry, I was reasoning in B4A. Then, I looked at B4J File Help, and the text is the same. Then I tested your project with older B4J versions, even with B4J version 7.51 and it always returns False !?
LucaMs Expert Licensed User Longtime User Jul 11, 2021 #6 klaus said: Then I tested your project with older B4J versions, even with B4J version 7.51 and it always returns False !? Click to expand... I can confirm; just tested B4J v. 9.00 Upvote 0
klaus said: Then I tested your project with older B4J versions, even with B4J version 7.51 and it always returns False !? Click to expand... I can confirm; just tested B4J v. 9.00
ilan Expert Licensed User Longtime User Jul 11, 2021 #7 ok found the answer: https://www.b4x.com/android/forum/threads/load-image-or-file-from-jar.38215/post-226226 Upvote 0
ok found the answer: https://www.b4x.com/android/forum/threads/load-image-or-file-from-jar.38215/post-226226