COSGutObject extension
- on
Methods
-
getObject(
{required String savePath, required String bucket, required String key, void progress(int downloadedBytes, int totalBytes)?, String? region, Map< String, String> ? headers, Map<String, String> ? params, int? chunkSize, int? concurrent}) → Future<File?> -
下载对象
参考文档: https://cloud.tencent.com/document/product/436/7749
savePath
文件下载路径progress
下载进度concurrent
同时发起请求数,默认 10chunkSize
下载分块大小,单位字节,默认 4M