suyanhanx commented on code in PR #1869:
URL:
https://github.com/apache/incubator-opendal/pull/1869#discussion_r1160455319
##########
core/src/services/gcs/backend.rs:
##########
@@ -405,6 +407,50 @@ impl Accessor for GcsBackend {
))
}
+ async fn copy(&self, from: &str, to: &str, _: OpCopy) -> Result<RpCopy> {
+ let source = percent_encode_path(&build_abs_path(&self.root,
from.trim_end_matches("/")));
+ let dest = percent_encode_path(&build_abs_path(&self.root,
to.trim_end_matches("/")));
+ let req_uri = format!(
+ "{}/storage/v1/b/{}/o/{}/rewriteTo/b/{}/o/{}",
Review Comment:
~~Is something not quite right here? I think it should be this:
https://cloud.google.com/storage/docs/json_api/v1/objects/copy~~
My fault. Please ignore it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]