onedrive/api_v5.py
def listdir(self, folder_id='me/skydrive', type_filter=None, limit=None, offset=None):
		'''Return a list of objects in the specified folder_id.
			limit is passed to the API, so might be used as optimization.
			type_filter can be set to type (str) or sequence
				of object types to return, post-api-call processing.'''
		lst = super(OneDriveAPI, self)\
			.listdir(folder_id=folder_id, limit=limit, offset=offset)['data']
		if type_filter:
			if isinstance(type_filter, types.StringTypes): type_filter = {type_filter}
			lst = list(obj for obj in lst if obj['type'] in type_filter)
		return lst
def listdir(self, folder_id='me/skydrive', type_filter=None, limit=None, offset=None):
		'''Return a list of objects in the specified folder_id.
			limit is passed to the API, so might be used as optimization.
			type_filter can be set to type (str) or sequence
				of object types to return, post-api-call processing.'''
		lst = super(OneDriveAPI, self)\
			.listdir(folder_id=folder_id, limit=limit, offset=offset)['data']
		if type_filter:
			if isinstance(type_filter, types.StringTypes): type_filter = {type_filter}
			lst = list(obj for obj in lst if obj['type'] in type_filter)
		return lst
def listdir ( self , folder_id = 'me/skydrive' , type_filter = None , limit = None , offset = None ) : lst = super ( OneDriveAPI , self ) . listdir ( folder_id = folder_id , limit = limit , offset = offset ) [ 'data' ] if type_filter : if isinstance ( type_filter , types . StringTypes ) : type_filter = { type_filter } lst = list ( obj for obj in lst if obj [ 'type' ] in type_filter ) return lst
Return a list of objects in the specified folder_id.
			limit is passed to the API, so might be used as optimization.
			type_filter can be set to type (str) or sequence
				of object types to return, post-api-call processing.
Return a list of objects in the specified folder_id . limit is passed to the API so might be used as optimization . type_filter can be set to type ( str ) or sequence of object types to return post - api - call processing .