Moves the file to a a new location in S3.

C# |
public S3FileInfo MoveTo( S3DirectoryInfo path )

- path (S3DirectoryInfo)
- The target directory to copy to.

S3FileInfo for the target location.

Exception | Condition |
---|---|
IOException | If the file already exists in S3. |
ArgumentException | |
WebException | |
AmazonS3Exception |