What is the best way to delete a file? Is it deleteObject?
Hi,
You should be able to just use the Lua standard os
library.
os.remove( filename )
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
Let me know.
Cheers.
Hi,
You should be able to just use the Lua standard os
library.
os.remove( filename )
Deletes the file or directory with the given name. Directories must be empty to be removed. If this function fails, it returns nil, plus a string describing the error.
Let me know.
Cheers.
What about removing files from the cloud, though? When I use os.remove or system.os.remove, I get an error, saying that system is a nil value. Is there a “require” statement that I need in order to call os.remove from the cloud?
Develephant, just to make sure I give you the most accurate information, here is what I know about which version of coronium we are using:
From the Coronium Cloud Administration Page, the bottom left corners says 1.93.1.
From localhost/_settings, it says Beta 1.92.
And in the mod_coronium.lua file, it says “Coronium module for Corona SDK v1.92.5”.
So, in short, I don’t really know which version we’re using. But I hope this gives you the information you need.
Develephant, I still havent been able to figure out how to delete a file in Coronium and it is pretty vital to our game. Have you had a chance to run any more tests?
What about removing files from the cloud, though? When I use os.remove or system.os.remove, I get an error, saying that system is a nil value. Is there a “require” statement that I need in order to call os.remove from the cloud?
Develephant, just to make sure I give you the most accurate information, here is what I know about which version of coronium we are using:
From the Coronium Cloud Administration Page, the bottom left corners says 1.93.1.
From localhost/_settings, it says Beta 1.92.
And in the mod_coronium.lua file, it says “Coronium module for Corona SDK v1.92.5”.
So, in short, I don’t really know which version we’re using. But I hope this gives you the information you need.
Develephant, I still havent been able to figure out how to delete a file in Coronium and it is pretty vital to our game. Have you had a chance to run any more tests?