hfutatzhanghb commented on PR #7818:
URL: https://github.com/apache/opendal/pull/7818#issuecomment-4789585166

   erickguan — This aligns with how copy and write handle the same situation. 
The options struct is always constructable: no compile-time gate. At runtime 
the `correctness_check` layer inspects the capability and returns `Unsupported` 
when `if_not_exists` is set but the capability isn't advertised. See 
[write](https://github.com/apache/opendal/blob/main/core/core/src/layers/correctness_check.rs#L136-L143)
 and 
[copy](https://github.com/apache/opendal/blob/main/core/core/src/layers/correctness_check.rs#L210-L217)
 — rename follows the identical pattern.


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