techknight Well-Known Member Licensed User Longtime User Jun 8, 2018 #1 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: Code: Copy Log(File.Delete(File.DirInternal & "/rosterV2/home/", GameDataBasketball.HomeFile)) However, this returns true: Code: Copy log(File.Exists(File.DirInternal & "/rosterv2/home/", GameDataBasketball.HomeFile)) However, if I do this: Code: Copy File.MakeDir(File.DirInternal, "testfile") Log(File.Delete(File.DirInternal, "testfile")) Returns true and the folder is gone. Hmmmmmmmmmmm any thoughts? Last edited: Jun 8, 2018
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: Code: Copy Log(File.Delete(File.DirInternal & "/rosterV2/home/", GameDataBasketball.HomeFile)) However, this returns true: Code: Copy log(File.Exists(File.DirInternal & "/rosterv2/home/", GameDataBasketball.HomeFile)) However, if I do this: Code: Copy File.MakeDir(File.DirInternal, "testfile") Log(File.Delete(File.DirInternal, "testfile")) Returns true and the folder is gone. Hmmmmmmmmmmm any thoughts?
techknight Well-Known Member Licensed User Longtime User Jun 8, 2018 #2 Nevermind, I am a complete idiot. Case Sensitive. Grr I am so used to windows. Upvote 0