Zip plugin only zipping "last" file

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.

I assume I should file this as a bug?  Where would I do that?

Cheers.

Hi @develephant,

Since you’re following the example, this may be a bug. Please file your test case at the following link:

http://developer.coronalabs.com/content/bug-submission

Thanks,

Brent

I assume I should file this as a bug?  Where would I do that?

Cheers.

Hi @develephant,

Since you’re following the example, this may be a bug. Please file your test case at the following link:

http://developer.coronalabs.com/content/bug-submission

Thanks,

Brent

Still a bug.

@AidanWolf,

Did you file a report?  I know it may seem counter-intutive, but the Corona guys need a bug report to be work on and prioritize bugs.  Also, if you give them a full example (even its just a cut-copy-paste of the example code in main.lua + a basic config.lua file), you’ll really be helping them and the community out.

I only mention this because I see you chimed in on two threads now (this one and here it is still a bug w/o listing a bug report.

As I said in the other post I have this working (in a recent version of Corona) and will test that it still works as well as provide a working sample when I get a chance.

-Ed

Still a bug.

@AidanWolf,

Did you file a report?  I know it may seem counter-intutive, but the Corona guys need a bug report to be work on and prioritize bugs.  Also, if you give them a full example (even its just a cut-copy-paste of the example code in main.lua + a basic config.lua file), you’ll really be helping them and the community out.

I only mention this because I see you chimed in on two threads now (this one and here it is still a bug w/o listing a bug report.

As I said in the other post I have this working (in a recent version of Corona) and will test that it still works as well as provide a working sample when I get a chance.

-Ed