I’m not sure what you mean by the external folder, but I use Corona’s standard document method, which can decompress the file and delete it.
local ZipData = ********
local function zipListener( event )
if ( event.isError ) then
print( "Error!" )
else
for i=1,#(event.response) do
--print( event.response[i] )
end
local result, reason = os.remove( system.pathForFile( ZipData, system.DocumentsDirectory ) )
if result then
print( "Done" )
else
-- print( "File does not exist", reason ) --> File does not exist apple.txt: No such file or directory
end
end
end
local zipOptions =
{
zipFile = ZipData,
zipBaseDir = system.DocumentsDirectory,
dstBaseDir = system.DocumentsDirectory,
listener = zipListener
}
zip.uncompress( zipOptions )