Subject: | Feature : modification time on directories |
Date: | Wed, 6 Jul 2016 10:24:24 +0000 |
To: | "bug-Archive-Zip [...] rt.cpan.org" <bug-Archive-Zip [...] rt.cpan.org> |
From: | SCIEUR Emmanuel <Emmanuel.SCIEUR [...] prestataire.sihm.fr> |
Hi
It's would be great if extractTree keep the modification Time of directories as it keep on files.
This is the suggest code : on file Archive\Zip\Archive.pm ligne 866 add :
utime($member->lastModTime(), $member->lastModTime(), $fileName);
that's done :
my $status = $member->extractToFileNamed($fileName);
utime($member->lastModTime(), $member->lastModTime(), $fileName);
return $status if $status != AZ_OK;
regards