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