commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: zipFile.getEntries() not containing archive root folder?
Date Sat, 13 Aug 2011 14:51:46 GMT
On 2011-08-13, Emmanouil Batsis (Manos) wrote:

> On 08/13/2011 07:19 AM, Stefan Bodewig wrote:
>> If you use some ZIP tool with a UI like "Windows Compressed Folders",
>> WinZip, 7ZIP or PKZIP they will show you the folders even if those are
>> not part of the archive - they simply don't have any other way to
>> visualize the entries.

> That was it.


> The zip came from a rather non-techie client as a testcase, will need
> to check out how it was created. This may not be a bug but it could be
> a valid a feature request, e.g. a flag to control whether entries
> should be constructed for such folders.

On the reading or the writing side?

In either case the corresponding Ant tasks would hold code that you
could leverage (although the extract logic really isn't difficult - does
File.getParentFile() exist?  No => call getParentFile().mkdirs()).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message