PUT /<ObjectKey>?recursive HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comx-cos-copy-source: <BucketName-APPID>.cos.<Region>.myqcloud.com/<SourceObjectKey>Authorization: Auth String
Term | Description | Type | Required |
recursive | Enables recursive directory copy mode. No value assignment is required; it only needs to appear in the URL. | No value | Yes |
conflict_resolution_strategy | Conflict resolution policy. For recursive directory copy, the optional values are ask and rename, with ask as the default. In case of a conflict, the system returns HTTP 409 Conflict and the SameNameDirectoryOrFileExists error code. rename: Automatically renames the last-level directory in case of a conflict. | string | No |
<CopyObjectResult><ETag>"etag-value"</ETag><LastModified>2025-01-15T10:30:00Z</LastModified><CRC64>xxx</CRC64></CopyObjectResult>
Node Name (Keyword) | Parent Node | Description | Type |
CopyObjectResult | None | All information for the Copy Object Recursive result. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
ETag | CopyObjectResult | The ETag value of the target object (enclosed in double quotes). | string |
LastModified | CopyObjectResult | The last modification time of the target object, in RFC 3339 format. | date |
CRC64 | CopyObjectResult | The CRC64 value of the target object. | integer |
PUT /myspace/bbb?recursive HTTP/1.1Host: smhxxx-1250000000.cos.ap-chengdu.myqcloud.comx-cos-copy-source: smhxxx-1250000000.cos.ap-chengdu.myqcloud.com/myspace/aaaAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1566302375;1566309575&q-key-time=1566302375;1566309575&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=delete&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlTransfer-Encoding: chunkedConnection: keep-aliveDate: Tue, 20 Aug 2019 11:59:35 GMTx-cos-request-id: NWQ1YmUwYTdfM2FiMDJhMDlfYzczN18zMGM1****<CopyObjectResult><ETag>"d-1780579801973809791"</ETag><LastModified>2026-06-04T13:30:01Z</LastModified><CRC64>5404623458528365127</CRC64></CopyObjectResult>
PUT /myspace/bbb?recursive HTTP/1.1Host: smhxxx-1250000000.cos.ap-chengdu.myqcloud.comx-cos-copy-source: smhxxx-1250000000.cos.ap-chengdu.myqcloud.com/myspace/aaaAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1566302375;1566309575&q-key-time=1566302375;1566309575&q-header-list=content-length;content-md5;content-type;date;host&q-url-param-list=delete&q-signature=****************************************
HTTP/1.1 200 OKContent-Type: application/xmlTransfer-Encoding: chunkedConnection: keep-aliveDate: Tue, 20 Aug 2019 11:59:35 GMTx-cos-request-id: NWQ1YmUwYTdfM2FiMDJhMDlfYzczN18zMGM1****<Error><Code>FileAlreadyExists</Code><Message>The destination directory already exists. Recursive directory copy does not support overwriting an existing destination directory. Use conflict_resolution_strategy=rename to auto-rename, or remove the existing destination first.</Message><Resource>/smh26zn7j7lfnwnc-1251081331/myspace/bbb</Resource></Error>
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan