I am writing objects into files using the WriteB4XObject from randomaccessfile library.
Trouble is, I cant delete any files created this way! I am using the DirInternal location.
If I do Log(File.Delete) I get false. File.Exists returns true.
This is the part that returns false:
However, this returns true:
However, if I do this:
Returns true and the folder is gone. Hmmmmmmmmmmm
any thoughts?
Trouble is, I cant delete any files created this way! I am using the DirInternal location.
If I do Log(File.Delete) I get false. File.Exists returns true.
This is the part that returns false:
B4X:
Log(File.Delete(File.DirInternal & "/rosterV2/home/", GameDataBasketball.HomeFile))
However, this returns true:
B4X:
log(File.Exists(File.DirInternal & "/rosterv2/home/", GameDataBasketball.HomeFile))
However, if I do this:
B4X:
File.MakeDir(File.DirInternal, "testfile")
Log(File.Delete(File.DirInternal, "testfile"))
Returns true and the folder is gone. Hmmmmmmmmmmm
any thoughts?
Last edited: