moore_it Well-Known Member Licensed User Longtime User Sep 20, 2019 #1 if i try this : Code: Copy if file.exist(file.dirasset,"test.png") then end if file test.png exist in file.dirasset but file.exist return false it's a my mistake ?
if i try this : Code: Copy if file.exist(file.dirasset,"test.png") then end if file test.png exist in file.dirasset but file.exist return false it's a my mistake ?
alwaysbusy Expert Licensed User Longtime User Sep 20, 2019 #2 "This method does not support File.DirAssets." see documentation: https://www.b4x.com/b4j/help/files.html#file_exists Upvote 0
"This method does not support File.DirAssets." see documentation: https://www.b4x.com/b4j/help/files.html#file_exists
moore_it Well-Known Member Licensed User Longtime User Sep 20, 2019 #3 Ok solutions ? Thanks in advice ! Upvote 0
Brandsum Well-Known Member Licensed User Sep 20, 2019 #4 The asset directory is read-only. You cant modify any file. So if you want to use any file you should put that in the Files folder of your project. Those will not get deleted in any situation. Maybe thats why file exist function was not built for asset directory. Upvote 0
The asset directory is read-only. You cant modify any file. So if you want to use any file you should put that in the Files folder of your project. Those will not get deleted in any situation. Maybe thats why file exist function was not built for asset directory.