Skip to content

Commit

Permalink
update URL #142
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Jan 10, 2022
1 parent 56eef47 commit e3fb705
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ gcs_copy_object <- function(source_object,
source_object <- URLencode(source_object, reserved = TRUE)
destination_object <- URLencode(destination_object, reserved = TRUE)

the_url <- sprintf("https://www.googleapis.com/storage/v1/b/%s/o/%s/rewriteTo/b/%s/o/%s",
the_url <- sprintf("https://storage.googleapis.com/storage/v1/b/%s/o/%s/copyTo/b/%s/o/%s",
source_bucket, source_object, destination_bucket, destination_object)
pars <- NULL
if(!is.null(rewriteToken)){
Expand All @@ -471,6 +471,7 @@ gcs_copy_object <- function(source_object,
ob <- gar_api_generator(the_url,
"POST",
pars_args = pars,
checkTrailingSlash = FALSE,
data_parse_function = function(x) x)
ob()
}
Expand Down

0 comments on commit e3fb705

Please sign in to comment.