Re: EOCD Signature errors with Archive::Zip
am 24.07.2006 04:42:14 von Sisyphus
"PK" wrote in message
news:4KidnakXn7du_l_ZnZ2dnUVZ_sGdnZ2d@comcast.com...
> I'm getting "can't find EOCD signature" errors from Archive::Zip 1.16 on
> files that seem to be valid i.e. I can open them fine with WinZip. Anyone
> know why this might be?
>
I don't really know - though the error presumably comes from the
_findEndOfCentralDirectory() subroutine in Zip.pm. Looks like that sub scans
the zip file for the string that has been assigned to the constant
Archive::Zip::END_OF_CENTRAL_DIRECTORY_SIGNATURE_STRING, and if it doesn't
find that string, it then throws that error.
I guess, therefore, that if WinZip also looks for the EOCD signature (which
seems to me a reasonable assumption), it must be looking for (and finding) a
different string than that being sought by Archive::Zip.
Can you upload a small zip file (that demonstrates the problem) to somewhere
on the web so that others can get a copy of it ?
How are these zip files being created ?
Cheers,
Rob