Android Question Use the MLfiles library to set the file time. You have made sure the file path is correct but failed to set it

MomoWen

Member
Licensed User
Use the MLfiles library to set the file time. You have made sure that the path is correct but the setting fails:
    Dim mlfile As MLfiles
    Dim lo As Long=1583955394000
   
   
        If File.Exists(File.DirRootExternal ,"t.xml")Then
            If mlfile.SetFileDate(File.DirRootExternal& "/t.xml",lo) Then
            Log("y")
        Else
            Log("n")
            Log(mlfile.ErrStr)
    End If
        End If
   
    Log(mlfile.GetFileDate(File.DirRootExternal &"/t.xml"))
    End If
 

MomoWen

Member
Licensed User
What happens?

You can use this code to change the last modified attribute: https://www.b4x.com/android/forum/threads/file-copy-without-changing-the-time.47214/post-292038
I'm using Android 19. Is there any missing support?
捕获.PNG
 
Upvote 0
Top