alamb commented on code in PR #555:
URL:
https://github.com/apache/arrow-rs-object-store/pull/555#discussion_r2588900487
##########
src/lib.rs:
##########
@@ -1828,6 +1855,76 @@ impl PartialEq<Self> for CopyOptions {
impl Eq for CopyOptions {}
+/// Configure preconditions for the target of rename operation.
Review Comment:
I did some research about the names used in cloud providers
S3 uses the term `If-None-Match` for the "don't overwrite" method:
https://docs.aws.amazon.com/AmazonS3/latest/API/API_RenameObject.html
From what I can tell, GCP doesn't support an atoimic rename/overwrite
operation. If you want to overwrite you have to delete the target first :
https://docs.cloud.google.com/storage/docs/copying-renaming-moving-objects
Azure Blob Storage calls it "replace if exists", specifically
https://learn.microsoft.com/en-us/rest/api/storageservices/rename-file
`x-ms-file-rename-replace-if-exists`
So TLDR I think these options are well named and reflect the available
capabilities 👍
--
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]