Describe the bug
GoogleCloudStorage::copy_opts gets the CopyMode behavior backwards - it forbids overwrites on CopyMode::Overwrite and allows them on CopyMode::Create.
To Reproduce
Create two objects in a GCS bucket, create a google cloud storage client, and copy from one to the other with CopyOptions { copy_mode: CopyMode::Overwrite, ..Default::default() }. This should succeed, but it fails with Error::AlreadyExists.
Expected behavior
one object is copied over the other.
Additional context
Describe the bug
GoogleCloudStorage::copy_optsgets the CopyMode behavior backwards - it forbids overwrites onCopyMode::Overwriteand allows them onCopyMode::Create.To Reproduce
Create two objects in a GCS bucket, create a google cloud storage client, and copy from one to the other with
CopyOptions { copy_mode: CopyMode::Overwrite, ..Default::default() }. This should succeed, but it fails withError::AlreadyExists.Expected behavior
one object is copied over the other.
Additional context