ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
It gives me back a zip with a folder heirchy staring at Program Files. At the bottom of the heirchy the file is there by itself and it's fine, but I need to ditch the heirchy above it.sub zipit(){ my ($zipName,$memberName)=@_; my $zip = Archive::Zip->new(); $zip->addFile( $memberName ); my $zipstatus = $zip->writeToFileNamed($zipName); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: create zip without path struct
by ecuguru (Monk) on Jan 17, 2006 at 23:19 UTC | |
by blazar (Canon) on Jan 18, 2006 at 08:39 UTC | |
|
Re: create zip without path struct
by idsfa (Vicar) on Jan 18, 2006 at 15:51 UTC |