I am using the "SaveAs" snippet mentionned in: https://www.b4x.com/android/forum/t...-folder-list-of-other-related-methods.129897/ . That's work fine for me except one point: Files saved cannot be deleted in the screen where we saved it and I notice with ftp that the saved file has the 644 attribute (rw-r--r--).
So, I cannot delete this saved file. Is somebody knows how to change this attribute at copy time ?
If File.Exists(MyDir, FileName) = True Then
Log("File exists. I'll try to delete it...")
If File.Delete(MyDir, FileName) = False Then
Log("File has NOT been deleted...")
Else
Log("File has been deleted...")
End If
End If
File is never deleted and I don't receive any error message or abend. In my application I want to have only the last copy of my file (a SQLite database): new copy should replace the previous one. Actually each save file, with an index, is added in destination folder.
I tried to delete it with FTP without success. I also tried to change the owner and the attributes of the file without more success.