aksjain has asked for the wisdom of the Perl Monks concerning the following question:
I am using following code to extract the files and directories from a zip file.
$filename = "somefile.zip"; $dest_dir = "c:/somedir"; my $zip = Archive::Zip->new(); local $Archive::Zip::UNICODE = 1; unless ( $zip->read($filename) == AZ_OK ) { die "Error Reading Zip File !"; } my @members = $zip->members(); foreach (@members){ $zip->extractMemberWithoutPaths( $_, "$dest_dir\\$_"); }
The problem i am facing is that it is unable to extract the zero size file(if any) which exists in at any directory level. Can somebody please share some references here? I am using "Straberry perl" on Windows 2012.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem extracting zero size files from zip.
by RichardK (Parson) on Jul 21, 2015 at 12:51 UTC | |
by aksjain (Acolyte) on Jul 21, 2015 at 13:55 UTC | |
|
Re: Problem extracting zero size files from zip.
by vinoth.ree (Monsignor) on Jul 21, 2015 at 13:00 UTC |