Android Question file.copy to dirinternal not working?

leitor79

Active Member
Licensed User
Longtime User
Hi,

I'm trying to replace a file with a new version within the app, but I having some issue.
Unfiltered log shows nothing.

I have this:

File.Copy(File.DirInternalCache,"datastore3",File.DirInternal,"datastore3")
'kvs.Initialize(File.DirInternal, "datastore3") '<---------- this doesn't work; kvs (a keyvaluestore object) remains empty
kvs.Initialize(File.DirInternalCache, "datastore3") '<------ this does wok.

kvs is initialized from dirinternal at the starter object... could it be datastore3 not being overwritten because it's in use?


Thank you!
 

leitor79

Active Member
Licensed User
Longtime User
Hi Erel, Thank you for your answer!

No; I wasn't closing the kvs. I didn't know/remember that I should do that first.

Thank you very much, now it works!
 
Upvote 0
Top