I have encountered an extremely strange behavior when using dir.documents.
I'm creating a file containing a string inside of dir.documents. Immediately after creating the file I check if it exists, and that returns true.
Later on, when trying to access the same file, it does not exist anymore.
The file is not deleted at any point in the code. None of this happens if the folder is dir.library instead.
I'm using a real iPhone 7.
This is the entirety of the code that references that file:
InternalsDirectory is simply a variable I use to determine the directory I'm using, be it library or documents.
I'm creating a file containing a string inside of dir.documents. Immediately after creating the file I check if it exists, and that returns true.
Later on, when trying to access the same file, it does not exist anymore.
The file is not deleted at any point in the code. None of this happens if the folder is dir.library instead.
I'm using a real iPhone 7.
This is the entirety of the code that references that file:
B4X:
File.WriteString(InternalsDirectory,"AccountType",btn.tag)
Log(File.Exists(InternalsDirectory,"AccountType"))
Then later on, once the user presses a button:
Log(File.Exists(InternalsDirectory,"AccountType"))
If (File.ReadString(InternalsDirectory,"AccountType") = "google") Then
InternalsDirectory is simply a variable I use to determine the directory I'm using, be it library or documents.