Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D16877AC for ; Sat, 13 Aug 2011 14:52:16 +0000 (UTC) Received: (qmail 17763 invoked by uid 500); 13 Aug 2011 14:52:14 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 17647 invoked by uid 500); 13 Aug 2011 14:52:13 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 17638 invoked by uid 99); 13 Aug 2011 14:52:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 14:52:13 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2011 14:52:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 4A828289801D for ; Sat, 13 Aug 2011 16:51:46 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xcZ2-4gnXChg for ; Sat, 13 Aug 2011 16:51:46 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 058B5289801E; Sat, 13 Aug 2011 16:51:46 +0200 (CEST) From: Stefan Bodewig To: user@commons.apache.org Subject: Re: zipFile.getEntries() not containing archive root folder? References: <4E456C8D.3080905@abiss.gr> <87obzubg6a.fsf@v35516.1blu.de> <4E45A1AD.5030704@abiss.gr> <8762m2osd8.fsf@v35516.1blu.de> <4E46383E.8070602@abiss.gr> Date: Sat, 13 Aug 2011 16:51:46 +0200 In-Reply-To: <4E46383E.8070602@abiss.gr> (Emmanouil Batsis's message of "Sat, 13 Aug 2011 11:39:26 +0300") Message-ID: <87r54pweil.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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