Copies an object to a new destination
gcs_copy_object(
source_object,
destination_object,
source_bucket = gcs_get_global_bucket(),
destination_bucket = gcs_get_global_bucket(),
rewriteToken = NULL,
destinationPredefinedAcl = NULL
)
The name of the object to copy, or a gs://
URL
The name of where to copy the object to, or a gs://
URL
The bucket of the source object
The bucket of the destination
Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true.
Apply a predefined set of access controls to the destination object. If not NULL must be one of the predefined access controls such as "bucketOwnerFullControl"
If successful, a rewrite object.
Other object functions:
gcs_compose_objects()
,
gcs_delete_object()
,
gcs_get_object()
,
gcs_list_objects()
,
gcs_metadata_object()