"Bridges, Ed NYC" <[EMAIL PROTECTED]> writes: > Without it actually being a directory, how would the zipfile know if > "inside/emptydir" is either a directory or a file?
According to what I have understood from documentation, and the result of trials, the prefix is used as a prefix directory for included entries by the zipfileset. Without 'excludes', if 'existingdir' contains A, B and C files; then the result of the file set is (in the zip): inside/emptydir/A inside/emptydir/B inside/emptydir/C My problem is: as the file set is empty, the prefix is not stored at all in the zip as a directory entry. > -----Original Message----- > From: Yves Martin [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 30, 2005 2:51 AM > To: [email protected] > Subject: Zip and empty directory > > > Hello, > > What is the best way to create a zip containing an empty directory without > having to create an empty directory on disk. > > I tried the following way: > <zipfileset dir="existingdir" excludes="**" prefix="inside/emptydir"/> > > But as the fileset is empty, no directory entry for 'inside/emptydir' is > added in the zip. > > Have you got a solution ? -- Yves Martin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
