Hi,
I am having an issue with the zip plugin. It will go through the process of zipping the files, but only the last file in the srcFiles table gets compressed. I used the code that was in the docs with build 2013.1228 running in the simulator on Windows 8.
For example:
local function zipListener( event ) if ( event.isError ) then print( "Zip Error") else --Example response print ( "event.name: " .. event.name ) print ( "event.type: " .. event.type ) end end local options = { zipFile ="levels.zip", zipBaseDir = system.DocumentsDirectory, srcBaseDir = system.DocumentsDirectory, srcFiles = { "level1.txt", "level2.txt" }, listener = zipListener } zip.compress(options);
If I put the **zip.compress() **method in a loop with a single file at a time, it will pack them all in, but it’s extremely slow.
Am I using the plugin properly? Or is this a bug?
Thanks in advance.