UploadPartCopy: UploadPartCopy

Description Usage Arguments Examples

Description

UploadPartCopy

Usage

1
2
UploadPartCopy(source, bucketname, key, uploadId, partNumber, Range = NULL,
  ETag = NULL, ETag.match = TRUE, since = NULL, modified.since = TRUE)

Arguments

source

The source object. /bucketname/objectname

bucketname

Destinate bucket

key

Destinate path on bucket

uploadId

Multipart upload event ID. InitiateMultipartUpload will return this in the response.

partNumber

Part number indicating which part uploading. Coresponding to relative position in the file. Data will be overwrite when the part already exists.

Range

The object content range, '0-99' means the first 100 bytes.

ETag

ETag of object.

ETag.match

Copy when ETag matches or copy when Etag not match.

since

POSIXct time.

modified.since

Copy when object was modified since a time, or copy when object was not modified since a time.

Examples

1
2
3
4
PutObject('ross-test', 'test.txt', 'test')
r <- InitiateMultipartUpload('ross-test', 'multi-test.txt')
uploadId <- unlist(xpath2list(httr::content(r), '//UploadId'))
UploadPartCopy('/ross-test/test.txt', 'ross-test', 'multi-test.txt', uploadId, 2, Range = '0-1')

gahoo/ross documentation built on May 16, 2019, 5:35 p.m.