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)

Subject: BUG: files with paths in zips are invisible using Windows Explorer
Date: Fri, 19 Jul 2013 18:32:17 -0700
To: bug-Archive-Zip [...]
From: Alan Sinclair <anadem [...]>
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

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

Please report any issues with to