Copies the file from the local file system to S3.
If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
| C# |
public S3FileInfo CopyFromLocal( string srcFileName, bool overwrite )
S3FileInfo where the file is copied to.
| Exception | Condition |
|---|---|
| IOException | If the file already exists in S3 and overwrite is set to false. |
| WebException | |
| AmazonS3Exception |