Need help with ZIP function in libarchive-zip-perl-0.11
Anyone familiar with the Debian libarchive-zip-perl-0.11?
I am looking for the destination path '/html/cgi-bin' to be included in the
ZIP when extracted but I just cannot make it work. It will list the files in
the ZIP but not the path.
What do I need to do to fix that?
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
$zip = Archive::Zip->new();
'/html/cgi-bin', '\.txt$' );
die 'write error' unless $zip->writeToFileNamed( 'NewZip.zip' ) == AZ_OK;
I want the end result to be from the server:
|My Other Dir|
|---my other files
In my ZIP I want to see:
my file txt 08/31/02 10 50 5
My other Dir
my other file
I am looking for the /html/cgi-bin for the path value but I cannot have it
appear in the ZIP.