Note: This API is now obsolete.
已废弃,请使用ResumableCopyObject。
拷贝指定的大文件:
OssObject到指定的
Bucket。
如果拷贝的文件大小小于或等于分片大小,则会使用普通拷贝,只需拷贝一次即可。
如果拷贝文件大小大于分片大小,则会使用分片拷贝。
Namespace: Aliyun.OSSAssembly: Aliyun.OSS (in Aliyun.OSS.dll) Version: 2.5.1.0 (2.5.1)
Syntax[ObsoleteAttribute("CopyBigObject is deprecated, please use ResumableCopyObject instead")]
CopyObjectResult CopyBigObject(
CopyObjectRequest copyObjectRequest,
Nullable<long> partSize = null,
string checkpointDir = null
)
<ObsoleteAttribute("CopyBigObject is deprecated, please use ResumableCopyObject instead")>
Function CopyBigObject (
copyObjectRequest As CopyObjectRequest,
Optional partSize As Nullable(Of Long) = Nothing,
Optional checkpointDir As String = Nothing
) As CopyObjectResult
[ObsoleteAttribute(L"CopyBigObject is deprecated, please use ResumableCopyObject instead")]
CopyObjectResult^ CopyBigObject(
CopyObjectRequest^ copyObjectRequest,
Nullable<long long> partSize = nullptr,
String^ checkpointDir = nullptr
)
[<ObsoleteAttribute("CopyBigObject is deprecated, please use ResumableCopyObject instead")>]
abstract CopyBigObject :
copyObjectRequest : CopyObjectRequest *
?partSize : Nullable<int64> *
?checkpointDir : string
(* Defaults:
let _partSize = defaultArg partSize null
let _checkpointDir = defaultArg checkpointDir null
*)
-> CopyObjectResult
Parameters
- copyObjectRequest
- Type: Aliyun.OSSCopyObjectRequest
请求对象 - partSize (Optional)
- Type: SystemNullableInt64
分片大小,如果用户不指定,则使用DefaultPartSize。
如果用户指定的partSize小于PartSizeLowerLimit,这会调整到PartSizeLowerLimit - checkpointDir (Optional)
- Type: SystemString
保存断点续传中间状态文件的目录,如果指定了,则具有断点续传功能,否则每次都会重新拷贝
Return Value
Type:
CopyObjectResultCopyObjectResult实例。
See Also