Xuanwo commented on code in PR #1869:
URL: 
https://github.com/apache/incubator-opendal/pull/1869#discussion_r1160503246


##########
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:
   For now, let's utilize the `copyTo` function instead of `rewriteTo`. The 
latter is not suitable for retry operations and copying large files requires a 
different approach.



-- 
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]

Reply via email to