D
Deleted User
Guest
OP
I am trying to make an application an in order to do so I need it to delete a directory before moving on and downloading/extracting a file. However it does not seem to work. Am I making a silly mistake?
Currently I am able to download and extract my zips properly. However deleting the old directory is kicking me a bit as it seems to not want to work
Here is my current code
Currently I am able to download and extract my zips properly. However deleting the old directory is kicking me a bit as it seems to not want to work
Here is my current code
Code:
-- runs update
pad = Controls.read()
if Controls.check(pad,KEY_X) then
-- Deletes the old directory
System.deleteDirectory("/saltysd")
-- Downloads new zip
Network.downloadFile("http://placeholderurl","/placeholder.zip")
-- Extracts zips
System.extractZIP("/placeholder.zip",System.currentDirectory().."/")
-- Deletes the temp file
System.deleteFile("/placeholder.zip")