Skip Menu |

This queue is for tickets about the Archive-Extract CPAN distribution.

Report information
The Basics
Id: 33560
Status: resolved
Priority: 0/
Queue: Archive-Extract

People
Owner: Nobody in particular
Requestors: Thorben.Woehler [...] deubner-verlag.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: [Archive-Extract 0.22 / MSWin32 XP] empty directories are extracted as zero-length files
Date: Mon, 25 Feb 2008 11:40:22 +0100
To: <bug-Archive-Extract [...] rt.cpan.org>
From: "Wöhler, Thorben" <Thorben.Woehler [...] deubner-verlag.de>
Hello Perl enthusiasts! :-) I havn't seen this bug addressed in the CPAN public bug tracker for the Archive-Extract module, so I thought I would let you know. Bug description... When extracting a .zip archive which includes empty directories, these empty directories are extracted not as directories, but as zero-length files. Not a critical issue, but still something that might cause problems. I have been using... Archive-Extract 0.22 (that's what my somewhat outdated command-line "ppm> install archive-extract" installed) Perl Version v5.8.7 813 for MSWin32 (from ActiveState) Windows XP 32bit Use Archive::Extract; my $ae = Archive::Extract->new( archive => 'archive.zip' ); $ae->extract( to => '/tmp' ); Keep up the great work! Kind regards, Thorben Wöhler
Hi Thorben, On Mon Feb 25 05:41:41 2008, Thorben.Woehler@deubner-verlag.de wrote: Show quoted text
> When extracting a .zip archive which includes empty directories, these empty > directories are extracted not as directories, but as zero-length files.
Thanks for reporting this issue; Archive::Extract itself doesn't handle zip files, but uses either Archive::Zip or /bin/unzip under the hood. In all likelihood, one of those is the culprit. To find out which of the 2, add the following line of code: [...] Show quoted text
> Use Archive::Extract; > my $ae = Archive::Extract->new( archive => 'archive.zip' ); > $ae->extract( to => '/tmp' );
print $ae->_extractor; if that's '_unzip_az', i'ts Archive::Zip, otherwise it's /bin/unzip. Hope this helps, and lets you report the bug in the right piece of software. Kind regards,