99from . import config
1010from .baseufile import BaseUFile
1111from .compact import s
12- from .httprequest import ResponseInfo , _initialsharding , _finishsharding , _shardingupload , _list_parts
12+ from .httprequest import ResponseInfo , _initialsharding , _finishsharding , _shardingupload , _get_multi_upload_part
1313from .logger import logger
1414from .util import _check_dict , initialsharding_url , finishsharding_url , shardingupload_url , _file_iter , \
1515 mimetype_from_file , mimetype_from_buffer , deprecated , ufile_listparts_url
@@ -446,7 +446,7 @@ def upload_part_copy(self, source_bucket, source_key, mime_type, offset, size, p
446446 self .etaglist .append (resp .etag )
447447 return ret , resp
448448
449- def list_parts (self , bucket , upload_id , max_parts = None , part_number_marker = None , header = None , upload_suffix = None ):
449+ def get_multi_upload_part (self , bucket , upload_id , max_parts = None , part_number_marker = None , header = None , upload_suffix = None ):
450450 """
451451 获取未完成分片上传的对象的已上传成功的分片列表。
452452
@@ -466,4 +466,4 @@ def list_parts(self, bucket, upload_id, max_parts=None, part_number_marker=None,
466466 authorization = self .authorization ('get' , bucket , "" , self .__header , action = 'muploadpart' )
467467 self .__header .update ({"Authorization" : authorization })
468468 url = ufile_listparts_url (bucket , self .__upload_suffix , upload_id , max_parts , part_number_marker )
469- return _list_parts (url , self .__header )
469+ return _get_multi_upload_part (url , self .__header )
0 commit comments