Copies the file from the local file system to S3.
If the file already exists in S3 than an ArgumentException is thrown.
| C# |
public S3FileInfo CopyFromLocal( string srcFileName )
- srcFileName (String)
- Location of the file on the local file system to copy.
S3FileInfo where the file is copied to.
| Exception | Condition |
|---|---|
| IOException | If the file already exists in S3. |
| WebException | |
| AmazonS3Exception |