commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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.

Good.

> 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()).

Stefan

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


Mime
View raw message