I’m trying to make a download manager on my app and everytime that I try to download a file that already exists, I’m getting this error:
Failed to rename temp download file to final download file
I don’t know why because I have a code line to remove the file if it already exists… Here’s my code:
local params = {} params.progress = true local results, reason = os.remove( system.pathForFile( filename, system.DocumentsDirectory ) ) network.download( url, "GET", callback, params, filename, system.DocumentsDirectory)
os.remove is removing the file (already tested with prints that check if file exists) and so, why is the error appearing?
I’m using build 2013.2002 (Graphics 2.0) and testing on windows simulator.