GitHub user Xuanwo edited a discussion: Add `if_not_exists` in `OpWrite` to
make behavior more clear
OpenDAL now supports the use of `"*"` in `if_none_match` to perform conditional
write operations:
```rust
let _ = op.write_with(path, bs).if_none_match("*").await?;
```
However, it's somewhat difficult to grasp at first glance. Do you think it's a
good idea to include `if_not_exists`?
So we can write code like:
```rust
let _ = op.write_with(path, bs).if_not_exists(true).await?;
```
---
After this change, we will still allow users to use `if_none_match("*")`, but
we will no longer document it, making it a service implementation detail.
GitHub link: https://github.com/apache/opendal/discussions/5223
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]