AWS SDK for .NET Documentation
CopyTo Method (dir)
AmazonAmazon.S3.IOS3FileInfoCopyTo(S3DirectoryInfo) Did this page help you?   Yes   No    Tell us about it...
Copies this file to the target directory. If the file already exists in S3 than an ArgumentException is thrown.
Declaration Syntax
C#
public S3FileInfo CopyTo(
	S3DirectoryInfo dir
)
Parameters
dir (S3DirectoryInfo)
Target directory where to copy the file to.
Return Value
S3FileInfo of the newly copied file.
Exceptions
ExceptionCondition
ArgumentExceptionIf the directory does not exist.
IOExceptionIf the file already exists in S3.
WebException
AmazonS3Exception

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)