CopyObject: CopyObject

Description Usage Arguments Examples

Description

CopyObject

Usage

1
2
3
CopyObject(source, bucketname, key, encryption = NULL, acl = "private",
  meta.directive = "COPY", ETag = NULL, ETag.match = TRUE, since = NULL,
  modified.since = TRUE, ..., .meta = NULL)

Arguments

source

The source object. /bucketname/objectname

bucketname

Destinate bucket

key

Destinate path on bucket

encryption

server side encryption algorithm AES256

acl

Access control: private, public-read, public-read-write

meta.directive

COPY or REPLACE meta info of object. All source meta will be ignore when this value set to REPLACE.

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.

...

Set header directly. Cache-Control, Content-Disposition, Content-Encoding, Expires, ...

.meta

Other meta info set to the object, < 8k.

Examples

1
2
3
4
5
6
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt')
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt', encryption = 'AES256')
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt', acl = 'public-read')
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt', meta.directive = 'REPLACE', .meta = list(owner='igenecode.com'))
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt', ETag = 'AAAA', ETag.match = F)
CopyObject('/ross-test/test.txt', 'ross-test', 'test2.txt', since = Sys.time(), modified.since = F)

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