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