cos-python-sdk-v4 icon indicating copy to clipboard operation
cos-python-sdk-v4 copied to clipboard

why max_num is only 199

Open wkatios opened this issue 7 years ago • 3 comments

i change the cos_request.py -ListFolderRequest()

def init(self, bucket_name, cos_path, num=10000, prefix=u'', context=u'') you can see ,i changed num = 10000

then {u'message': u'ERROR_CGI_PARAM_LIST_NUM_ERROR', u'code': -5966, u'request_id': u''}

wkatios avatar Sep 04 '17 09:09 wkatios

Hi, It depends on server's implement.

liuchang0812 avatar Sep 04 '17 11:09 liuchang0812

so,how can i solve this problem,like a folder has 2000 pictures,i want to get their infomations. but i just could get the first 199 pictures when i Initiate a request。

wkatios avatar Sep 05 '17 01:09 wkatios

there is a parameter called marker. FYI: https://github.com/Liuchang0812/dump_cos_bucket/blob/master/dump_bucket/main.py#L11

liuchang0812 avatar Sep 05 '17 02:09 liuchang0812