tencentyun / cos-python-sdk-v4

Python SDK for COS v4
Apache License 2.0
38 stars 22 forks source link

why max_num is only 199 #42

Open wkatios opened 7 years ago

wkatios commented 7 years ago

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''}

liuchang0812 commented 7 years ago

Hi, It depends on server's implement.

wkatios commented 7 years ago

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。

liuchang0812 commented 7 years ago

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