diff --git a/twistedcaldav/static.py b/twistedcaldav/static.py index 9c6345c4c..b41202da7 100644 --- a/twistedcaldav/static.py +++ b/twistedcaldav/static.py @@ -411,6 +411,9 @@ def provisionFile(self): if hasattr(self, "parent"): parent = self.parent + if not parent.exists() and isinstance(parent, AutoProvisioningFileMixIn): + parent.provision() + assert parent.exists(), "Parent %s of %s does not exist" % (parent, self) assert parent.isCollection(), "Parent %s of %s is not a collection" % (parent, self)