Hi expert
I'm trying to copy file from asset folder it shows error
java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.temp/files/temp1.db (No such file or directory)
while Log(File.Exists(File.DirDefaultExternal,"temp1.db")) shows true
my code :
If File.ExternalWritable Then TargetDir = File.DirDefaultExternal Else TargetDir = File.DirInternal
If File.Exists(TargetDir, "temp1.db") = False Then
File.Copy(File.DirAssets, "temp1.db", TargetDir, "temp1.db")
End If
I'm trying to copy file from asset folder it shows error
java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.temp/files/temp1.db (No such file or directory)
while Log(File.Exists(File.DirDefaultExternal,"temp1.db")) shows true
my code :
If File.ExternalWritable Then TargetDir = File.DirDefaultExternal Else TargetDir = File.DirInternal
If File.Exists(TargetDir, "temp1.db") = False Then
File.Copy(File.DirAssets, "temp1.db", TargetDir, "temp1.db")
End If