Copies this file's content to the file indicated by the S3 bucket and object key.
If the file already exists in S3 than an ArgumentException is thrown.
Declaration Syntax
C# |
public S3FileInfo CopyTo( string newBucket, string newKey )
Return Value
S3FileInfo of the newly copied file.
Exceptions
Exception | Condition |
---|---|
ArgumentException | |
WebException | |
AmazonS3Exception |