B4J Question Bug ?


Active Member
Licensed User
if i try this :

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 ?


Well-Known Member
Licensed User
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.