in reply to Question on Zip::Archive

It will be helpful if you can show the code that leads to this issue, if that is not possible try to write some that will replicate the problem you are having. Also it would help us have a better idea of how you are trying to create the zip file. Something to look at is the CPAN docpage for the Archive::Zip module. Just something to try is using the extractMemberWithoutPaths operation to get the member from the zip file without any path information

Replies are listed 'Best First'.
Re^2: Question on Zip::Archive
by biswanath_c (Beadle) on Jun 28, 2010 at 20:31 UTC
    thanks for the reply. you had suggested an option how to not preserve paths while unzipping from Perl script; but i would likt to do the opposite. I would like to NOT preserve the folder structure while zipping itself; so if i create zip files programatically and give it to someone, and when that guy unzips it using Winzip, he should not get the folder structure back. I tried looking at the CPAN doc page for Zip::Archive; but it did not show me any option.

      The link is:Archive::Zip My suggestion is that if you couldnt figure out how to directly make the zip file without directory information you could make the zip file like you already have, then read it back without path information to make temp files without path information and then write those to the final zip file. It is a really cheesy hack, I know, but if you don't show us the code that gives you issues we can't help you as effectively.

      There is no module called "Zip::Archive" on cpan c_biswanath :)