Skip Menu |

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

Report information
The Basics
Id: 87082
Status: new
Priority: 0/
Queue: Archive-Zip

Owner: Nobody in particular
Requestors: anadem [...]

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

From anadem [...] Fri Jul 19 21: 32:30 2013
MIME-Version: 1.0
X-Spam-Status: No, score=-6.219 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="047d7b3a9ad0e768f604e1e76971"
Message-ID: <CAEftgX5iFxzO+CbGbiDH=93HO1eUmAOpWhFWynTGAxyCnKFjHA [...]>
X-Received: by with SMTP id pj5mr1766530igb.31.1374283937308; Fri, 19 Jul 2013 18:32:17 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -6.219
Received: from localhost (localhost []) by (Postfix) with ESMTP id 3E95E240F9D for <cpan-bug+Archive-Zip [...]>; Fri, 19 Jul 2013 21:32:30 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id EAG5focGDtk6 for <cpan-bug+Archive-Zip [...]>; Fri, 19 Jul 2013 21:32:28 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 89C48240F9C for <bug-Archive-Zip [...]>; Fri, 19 Jul 2013 21:32:28 -0400 (EDT)
Received: (qmail 3055 invoked by alias); 20 Jul 2013 01:32:27 -0000
Received: from (HELO ( by (qpsmtpd/0.28) with ESMTP; Fri, 19 Jul 2013 18:32:21 -0700
Received: by with SMTP id 9so10846109iec.19 for <bug-Archive-Zip [...]>; Fri, 19 Jul 2013 18:32:17 -0700 (PDT)
Received: by with HTTP; Fri, 19 Jul 2013 18:32:17 -0700 (PDT)
Authentication-Results: (amavisd-new); dkim=pass header.i= [...]
Delivered-To: cpan-bug+Archive-Zip [...]
Subject: BUG: files with paths in zips are invisible using Windows Explorer
Return-Path: <anadem [...]>
X-RT-Mail-Extension: archive-zip
X-Original-To: cpan-bug+Archive-Zip [...]
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=haaORyfTsSp8OudFsjpi0cYVa5ZIC5f7w0XThuMzLSs=; b=FIHfr2+ITlaCPpa0iEws6gTV6L3vlWIby/QGfpYMZU2zYDMSTQ87qM5PfFeULRs8ot Fz9mm0vJEpx7xQfTvreL0TBWsjQdA5u7iP8npx0pjhTj86e5ESCxb+I6M+Z5sOzsXSfq Y3CG2O6Q9ywj1oV3xcDtSyMQ1G3acpiIQrCJWvEmZca1gci3GsSszMLekGMpgCGV447L UIbaLa4bju+O7e1pcOm1XnuGB9zHqtOeIlMlnCMTRuQkB1cAJiB6lEWLmeQzVfzEhyAR dV43Rt7J2OHVUAVicOWXxIGWmrLp7IF82GenS84aZTirlSIYP2j6QcDUM2R/ynXXpWgf qiOw==
Date: Fri, 19 Jul 2013 18:32:17 -0700
To: bug-Archive-Zip [...]
From: Alan Sinclair <anadem [...]>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1146
Download (untitled) / with headers
text/plain 1.1k
Using Archive::Zip to make a zip file that includes files in subdirectories results in a package in which Windows Explorer cannot see the files in subdirectories. Only files with no path information are visible. For example the following code packages one file from the current directory, and one from a subdirectory. When the zip file is opened in WIndows Explorer the subdirectory and its file are not visible. Tools such as gnu zip, 7zip, WinZip, etc can see subdirectories OK, so I guess this may be a Windows bug, but hope it can be fixed in the Archive::Perl module. (Log in to the CPAN bug archive with OpenID fails, so I can't look for prior submissions or conversations about this.) # this is use strict; use Archive::Zip; my @files_to_get = ( { files => "" }, # in current directory { files => ".\\temp\\dummy.txt" }, # in a sub dir ); my $zip = Archive::Zip->new(); # new zip object for packaging foreach my $href ( @files_to_get ) { my $file = $href->{"files"}; print( " adding $file\n" ); $zip->addFile( $file ); } $zip->writeToFileNamed( "" ); exit; Regards Alan Sinclair
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 2334

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to