Click or drag to resize
IOssResumableCopyObject Method
自动分片后按片拷贝,支持断点续传。 如果拷贝的文件大小小于或等于分片大小,则会使用普通拷贝,只需拷贝一次即可。 如果拷贝文件大小大于分片大小,则会使用分片拷贝。

Namespace: Aliyun.OSS
Assembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntax
CopyObjectResult ResumableCopyObject(
	CopyObjectRequest copyObjectRequest,
	string checkpointDir,
	Nullable<long> partSize = null
)

Parameters

copyObjectRequest
Type: Aliyun.OSSCopyObjectRequest
请求对象
checkpointDir
Type: SystemString
保存断点续传中间状态文件的目录,如果指定了,则具有断点续传功能,否则每次都会重新拷贝
partSize (Optional)
Type: SystemNullableInt64
分片大小,如果用户不指定,则使用DefaultPartSize。 如果用户指定的partSize小于PartSizeLowerLimit,这会调整到PartSizeLowerLimit

Return Value

Type: CopyObjectResult
CopyObjectResult实例。
See Also