Moves the files from this directory to the target directory specified by the bucket and object key.
Namespace: Amazon.S3.IO
Assembly: AWSSDK.dll
Version: 2.0.0.3
Syntax
public S3DirectoryInfo MoveTo(
String newBucket,
String newKey
)
Parameters
- newBucket
-
Type: System.String
The target bucket to move to.
- newKey
-
Type: System.String
The target object key which represents a directory in S3.
Exceptions
| Exception | Condition |
|---|---|
| System.ArgumentException | |
| System.Net.WebException | |
| Amazon.S3.AmazonS3Exception |
Version Information
.NET Framework:
Supported in: 4.5, 4.0, 3.5