Replaces the destination file with the content of this file and then deletes the orignial file. If a backup location is specifed then the content of destination file is
backup to it.

C# |
public S3FileInfo Replace( string destinationBucket, string destinationKey, string backupBucket, string backupKey )

- destinationBucket (String)
- Destination bucket of this file will be copy to.
- destinationKey (String)
- Destination object key of this file will be copy to.
- backupBucket (String)
- Backup bucket to store the contents of the destination file.
- backupKey (String)
- Backup object key to store the contents of the destination file.

S3FileInfo of the destination file.

Exception | Condition |
---|---|
ArgumentException | |
IOException | |
WebException | |
AmazonS3Exception |