You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Xuanwo (via GitHub)" <gi...@apache.org> on 2023/05/23 06:27:37 UTC

[GitHub] [incubator-opendal] Xuanwo commented on issue #2156: idea: Add file version support for OpenDAL

Xuanwo commented on issue #2156:
URL: https://github.com/apache/incubator-opendal/issues/2156#issuecomment-1558611783

   > Oh I need this feature to update an s3 object in a CAS manner!
   
   Yes, we can read object with version_id like:
   
   ```rust
   let content = op.read_with("path/to/file", OpRead::new().with_version("<version_id>")).await?;
   ```
   
   > Or, is there any other approach than using version id to ensure that the object remains unchanged during the update?
   
   I have no idea for this now


-- 
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: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org