You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "miniliuke (via GitHub)" <gi...@apache.org> on 2024/08/20 03:41:08 UTC

[D] Why OpenDAL provides overwrite and append modes for the write operation but does not offer a write if not exist mode? [opendal]

GitHub user miniliuke created a discussion: Why OpenDAL provides overwrite and append modes for the write operation but does not offer a write if not exist mode?

I am trying to implement a file lock, hoping to use atomic operations to write if the file does not exist, but it seems that OpenDAL cannot achieve this?

GitHub link: https://github.com/apache/opendal/discussions/5022

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org


Re: [D] Why OpenDAL provides overwrite and append modes for the write operation but does not offer a write if not exist mode? [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
GitHub user Xuanwo added a comment to the discussion: Why OpenDAL provides overwrite and append modes for the write operation but does not offer a write if not exist mode?

We could potentially support this by adding `if_not_exist()` and `if_exist()`.

GitHub link: https://github.com/apache/opendal/discussions/5022#discussioncomment-10391955

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org