Subject: | 1.15_02 Archive::Zip::ZipFileMember::_become: keep localHeaderRelativeOffset |
Distribution name and version: Archive-Zip-1.15_02
perl -v: v5.8.5 built for i386-linux-thread-multi
uname -a: Linux ingrid.hq.netapp.com 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux
I have an application where I want to access
localHeaderRelativeOffset for every member of a zip archive.
However, Archive::Zip::ZipFileMember::_become contains
delete( $self->{'localHeaderRelativeOffset'} );
which means that localHeaderRelativeOffset is deleted for
directory members.
This is a feature request for a way to make
localHeaderRelativeOffset available for every member of a
zip archive.
For now, I just removed the line
delete( $self->{'localHeaderRelativeOffset'} );
Longer term, you might want to consider adding a way for
users of Archive::Zip to subclass Archive::Zip::Member and
its descendants.