Hello all,
i’m trying to uncompress a simple zipfile from system.TemporaryDirectory. Even if file exists or not i got error.
The code below running fine when i changing zipBaseDir to system.ResourceDirectory.
Testing environment was the Corona simulator on windows.
local zip = require "plugin.zip"
local unzipOptions = { zipFile = "test.zip", zipBaseDir = system.TemporaryDirectory, dstBaseDir = system.TemporaryDirectory, listener = function(event) if ( event.isError ) then print("ERROR:",event.errorMessage) else print("OK") end end } local f = io.open(system.pathForFile("test.zip",system.TemporaryDirectory),"r") if f then print("File exists") io.close(f) end zip.list(unzipOptions)
Output:
File exists ERROR:
What i’m doing wrong?

