AWS SDK for .NET Documentation
CopyToLocal Method (destFileName, overwrite)
AmazonAmazon.S3.IOS3FileInfoCopyToLocal(String, Boolean) Did this page help you?   Yes   No    Tell us about it...
Copies from S3 to the local file system. If the file already exists on the local file system and overwrite is set to false than an ArgumentException is thrown.
Declaration Syntax
C#
public FileInfo CopyToLocal(
	string destFileName,
	bool overwrite
)
Parameters
destFileName (String)
The path where to copy the file to.
overwrite (Boolean)
Determines whether the file can be overwritten.
Return Value
FileInfo for the local file where file is copied to.
Exceptions
ExceptionCondition
IOExceptionIf the file already exists locally and overwrite is set to false.
WebException
AmazonS3Exception

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