@@ -3560,7 +3560,7 @@ def _check_all_upload_parts(self, bucket, key, uploadid, local_path, parts_num,
3560
3560
already_exist_parts [part_num ] = part ['ETag' ]
3561
3561
return True
3562
3562
3563
- def download_file (self , Bucket , Key , DestFilePath , PartSize = 20 , MAXThread = 5 , EnableCRC = False , progress_callback = None , ** Kwargs ):
3563
+ def download_file (self , Bucket , Key , DestFilePath , PartSize = 20 , MAXThread = 5 , EnableCRC = False , progress_callback = None , DumpRecordDir = None , ** Kwargs ):
3564
3564
"""小于等于20MB的文件简单下载,大于20MB的文件使用续传下载
3565
3565
3566
3566
:param Bucket(string): 存储桶名称.
@@ -3596,7 +3596,7 @@ def download_file(self, Bucket, Key, DestFilePath, PartSize=20, MAXThread=5, Ena
3596
3596
callback = ProgressCallback (file_size , progress_callback )
3597
3597
3598
3598
downloader = ResumableDownLoader (self , Bucket , Key , DestFilePath , object_info , PartSize , MAXThread , EnableCRC ,
3599
- callback , ** Kwargs )
3599
+ callback , DumpRecordDir , ** Kwargs )
3600
3600
downloader .start ()
3601
3601
3602
3602
def upload_file (self , Bucket , Key , LocalFilePath , PartSize = 1 , MAXThread = 5 , EnableMD5 = False , progress_callback = None ,
0 commit comments