def create_empty_resource(self, name):
assert "<STR_LIT:/>" not in name<EOL>if self.provider.readonly:<EOL><INDENT>raise DAVError(HTTP_FORBIDDEN)<EOL><DEDENT>path = util.join_uri(self.path, name)<EOL>fp = self.provider._loc_to_file_path(path, self.environ)<EOL>f = open(fp, "<STR_LIT:wb>")<EOL>f.close()<EOL>return self.provider.get_resource_inst(path, self.environ)<EOL>
Create an empty (length-0) resource.

        See DAVResource.create_empty_resource()