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.
Declaration Syntax
C# |
public S3FileInfo Replace( S3FileInfo destFile, S3FileInfo backupFile )
Parameters
- destFile (S3FileInfo)
- Where the contents of this file will be copy to.
- backupFile (S3FileInfo)
- If specified the destFile is backup to it.
Return Value
S3FileInfo of the destination file.
Exceptions
Exception | Condition |
---|---|
ArgumentException | |
IOException | |
WebException | |
AmazonS3Exception |