[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnadmin hotcopy bug?

From: eg <egoots_at_gmail.com>
Date: Thu, 9 Oct 2008 14:43:10 -0700

On Wed, Oct 8, 2008 at 11:04 PM, Neels J. Hofmeyr <neels_at_elego.de> wrote:

Thanks for the feedback on the patch.

>
> Well, I'd have fixed things myself and committed it if I understood the
> patch. I don't, so I suggest you make the effort to fix the log message to
> briefly explain the actual change, and make a new diff against trunk.
>

For posterity, I searched high and low to try and figure out how to
add empty directories to a zip file using python's zipfile library.
This aspect seems woefully undocumented.

I found only a couple of references. The following explained it succinctly.

http://hiparrot.wordpress.com/2005/12/05/writing-an-empty-directory-into-a-zipfile/

To cut a long story short, you need to formulate it as such.

ZipFile.writestr(ZipInfo(directoryname+"/"),"")

I'll try and address the other niggly bits of your feedback when I get a chance.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-10 18:31:47 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.