Skip to content

Commit

Permalink
update doc for object_store copy_if_not_exists (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanKaul authored Sep 5, 2022
1 parent 43d8474 commit 7429b5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions object_store/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ pub trait ObjectStore: std::fmt::Display + Send + Sync + Debug + 'static {
/// Copy an object from one path to another, only if destination is empty.
///
/// Will return an error if the destination already has an object.
///
/// Performs an atomic operation if the underlying object storage supports it.
/// If atomic operations are not supported by the underlying object storage (like S3)
/// it will return an error.
async fn copy_if_not_exists(&self, from: &Path, to: &Path) -> Result<()>;

/// Move an object from one path to another in the same object store.
Expand Down

0 comments on commit 7429b5c

Please sign in to comment.