@defer.inlineCallbacks<EOL><INDENT>def listdir( self, folder_id='<STR_LIT:0>',<EOL>type_filter=None, offset=None, limit=None, **listdir_kwz ):<DEDENT>
res = yield super(txBox, self).listdir(<EOL>folder_id=folder_id, offset=offset,<EOL>limit=limit if limit is not None else <NUM_LIT>, **listdir_kwz )<EOL>lst = res['<STR_LIT>']<EOL>if limit is None: <EOL><INDENT>while res['<STR_LIT>'] > res['<STR_LIT>'] + res['<STR_LIT>']:<EOL><INDENT>offset = res['<STR_LIT>'] + res['<STR_LIT>']<EOL>res = yield super(txBox, self).listdir(<EOL>folder_id=folder_id, offset=offset, limit=<NUM_LIT>, **listdir_kwz )<EOL>lst.extend(res['<STR_LIT>'])<EOL><DEDENT><DEDENT>if type_filter:<EOL><INDENT>if isinstance(type_filter, types.StringTypes): type_filter = {type_filter}<EOL>lst = list(obj for obj in lst if obj['<STR_LIT:type>'] in type_filter)<EOL><DEDENT>defer.returnValue(lst)<EOL>
Return a list of objects in the specified folder_id.
                limit is passed to the API, so might be used as optimization.
                        None means "fetch all items, with several requests, if necessary".
                type_filter can be set to type (str) or sequence
                        of object types to return, post-api-call processing.