[Zope3-checkins] CVS: Zope3/src/zope/fssync - fssync.py:1.38
Fred L. Drake, Jr.
fred at zope.com
Fri Aug 8 18:45:05 EDT 2003
Update of /cvs-repository/Zope3/src/zope/fssync
In directory cvs.zope.org:/tmp/cvs-serv15595
Modified Files:
fssync.py
Log Message:
mkdir: refuse to create a new directory if we don't know about the
parent
=== Zope3/src/zope/fssync/fssync.py 1.37 => 1.38 ===
--- Zope3/src/zope/fssync/fssync.py:1.37 Fri Aug 8 10:36:47 2003
+++ Zope3/src/zope/fssync/fssync.py Fri Aug 8 17:45:01 2003
@@ -519,6 +519,9 @@
raise Error("%r is not a directory" % dir)
else:
dir = os.curdir
+ entry = self.metadata.getentry(dir)
+ if not entry:
+ raise Error("know nothing about container for %r" % path)
if exists(path):
raise Error("%r already exists" % path)
os.mkdir(path)
More information about the Zope3-Checkins
mailing list