Replaces the destination file with the content of this file and then deletes the orignial file. If a backupFile is specifed then the content of destination file is
backup to it.
| C# |
public S3FileInfo Replace( S3FileInfo destFile, S3FileInfo backupFile )
- destFile (S3FileInfo)
- Where the contents of this file will be copy to.
- backupFile (S3FileInfo)
- If specified the destFile is backup to it.
S3FileInfo of the destination file.
| Exception | Condition |
|---|---|
| ArgumentException | |
| IOException | |
| WebException | |
| AmazonS3Exception |