commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanouil Batsis (Manos)" <ma...@abiss.gr>
Subject Re: zipFile.getEntries() not containing archive root folder?
Date Fri, 12 Aug 2011 21:57:01 GMT
On 08/12/2011 10:09 PM, Stefan Bodewig wrote:
> On 2011-08-12, Emmanouil Batsis (Manos) wrote:
>
>> Consider a zip archive containing the following folder and files:
>
>> rootfolder
>> + file1.doc
>> + file2.pdf
>
>> Shouldnt the "entries" enum bellow contain an entry for the root folder?
>
>> ZipFile zipFile = new ZipFile(tmpZipFile);
>> Enumeration entries = zipFile.getEntries();
>
> If "rootfolder" is part of the archive, yes.  And I'm pretty sure it
> does (it will hav the name "rootfolder/").

Its something about the specific zip archive, must be. If I extract its 
contents and make a new zip on my machine it works just fine. Should i 
open a bug or something?

Manos

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message