Date: | Mon, 25 Feb 2019 19:04:28 +0000 |
Subject: | mainframe zip archive |
To: | "bug-IO-Compress [...] rt.cpan.org" <bug-IO-Compress [...] rt.cpan.org> |
From: | "Denley, Chris" <Chris.Denley [...] experian.com> |
IO::Uncompress::Unzip sees two streams for files in zip archive created on an IBM mainframe
use IO::Uncompress::Unzip qw($UnzipError);
my $zipfile = "mf.zip";
my $u = new IO::Uncompress::Unzip $zipfile
or die "Cannot open $zipfile: $UnzipError";
my $status;
for ($status = 1; $status > 0; $status = $u->nextStream())
{
my $name = $u->getHeaderInfo()->{Name};
warn "Processing member $name\n" ;
}
die "Error processing $zipfile: $!\n"
if $status < 0 ;
M:\>perl mf.pl
Processing member SYS19056/T123412/RA000/MNE#ZIPL/TESTING/H0D
Processing member SYS19056/T123412/RA000/MNE#ZIPL/TESTING/H0D
M:\>"C:\Program Files\7-Zip\7z.exe" l mf.zip
7-Zip 18.05 (x64) : Copyright (c) 1999-2018 Igor Pavlov : 2018-04-30
Scanning the drive for archives:
1 file, 23316 bytes (23 KiB)
Listing archive: mf.zip
--
Path = mf.zip
Type = zip
WARNINGS:
There are data after the end of archive
Physical Size = 465
Tail Size = 22851
Comment = PKZIP for z/OS by PKWARE
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
2019-02-25 12:34:12 ..... 329 157 SYS19056\T123412\RA000\MNE#ZIPL\TESTING\H0D
------------------- ----- ------------ ------------ ------------------------
2019-02-25 12:34:12 329 157 1 files
Warnings: 1
M:\>
Message body is not shown because it is too large.
Message body not shown because it is not plain text.