Need help with ZIP function in libarchive-zip-perl-0.11
Hi,
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 CGI::Debug;
use Archive::Zip qw( :ERROR_CODES :CONSTANTS );
$zip = Archive::Zip->new();
$zip->addTreeMatching( '/var/mnt/System/Web/wetrack4u/cgi-bin/temp',
'/html/cgi-bin', '\.txt$' );
die 'write error' unless $zip->writeToFileNamed( 'NewZip.zip' ) == AZ_OK;
================================
I want the end result to be from the server:
----DirTemp--|
|---my files
|My Other Dir|
|---my other files
In my ZIP I want to see:
Name------Type------Modified-------Size-------Ratio-----Packed-----Path
my file txt 08/31/02 10 50 5
/html/cgi-bin
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.
Regards,
Normand Charette
PathFinder Software
Reply to: