Android Question File attributes

jcmartini

Member
Licensed User
Longtime User
I try to delete it with:
B4X:
    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.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
To less information. What is the value of MyDir
 
Upvote 0
Top