@inlineCallbacks<EOL><INDENT>def create_or_clear(self, path, **kwargs):<DEDENT>
try:<EOL><INDENT>yield self.create(path, **kwargs)<EOL><DEDENT>except NodeExistsException:<EOL><INDENT>children = yield self.get_children(path)<EOL>for name in children:<EOL><INDENT>yield self.recursive_delete(path + "<STR_LIT:/>" + name)<EOL><DEDENT><DEDENT>
Create path and recursively clear contents.