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.
Declaration Syntax
C# |
public S3FileInfo CopyFromLocal( string srcFileName, bool overwrite )
Return Value
S3FileInfo where the file is copied to.
Exceptions
Exception | Condition |
---|---|
IOException | If the file already exists in S3 and overwrite is set to false. |
WebException | |
AmazonS3Exception |