Copies this file to the location indicated by the passed in S3FileInfo.
If the file already exists in S3 than an ArgumentException is thrown.
| C# |
public S3FileInfo CopyTo( S3FileInfo file )
- file (S3FileInfo)
- The target location to copy this file to.
S3FileInfo of the newly copied file.
| Exception | Condition |
|---|---|
| IOException | If the file already exists in S3. |
| WebException | |
| AmazonS3Exception |