Property | Type | Description | |
---|---|---|---|
ExistsWithBucketCheck | bool | ||
SameClient | bool |
Method | Description | |
---|---|---|
CopyFromLocal ( string srcFileName ) : |
Copies the file from the local file system to S3. If the file already exists in S3 than an ArgumentException is thrown.
|
|
CopyFromLocal ( string srcFileName, bool overwrite ) : |
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.
|
|
CopyTo ( S3DirectoryInfo dir ) : |
Copies this file to the target directory. If the file already exists in S3 than an ArgumentException is thrown.
|
|
CopyTo ( S3DirectoryInfo dir, bool overwrite ) : |
Copies this file to the target directory. If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
|
|
CopyTo ( |
Copies this file to the location indicated by the passed in S3FileInfo. If the file already exists in S3 than an ArgumentException is thrown.
|
|
CopyTo ( |
Copies this file to the location indicated by the passed in S3FileInfo. If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
|
|
CopyTo ( string newBucket, string newKey ) : |
Copies this file's content to the file indicated by the S3 bucket and object key. If the file already exists in S3 than an ArgumentException is thrown.
|
|
CopyTo ( string newBucket, string newKey, bool overwrite ) : |
Copies this file's content to the file indicated by the S3 bucket and object key. If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
|
|
CopyToLocal ( string destFileName ) : |
Copies from S3 to the local file system. If the file already exists on the local file system than an ArgumentException is thrown.
|
|
CopyToLocal ( string destFileName, bool overwrite ) : |
Copies from S3 to the local file system. If the file already exists on the local file system and overwrite is set to false than an ArgumentException is thrown.
|
|
Create ( ) : Stream |
Returns a Stream that can be used to write data to S3. The content is persisted to S3 once the Stream is closed.
|
|
CreateText ( ) : |
Returns a StreamWriter that can be used to write data to S3. The content is persisted to S3 once the StreamWriter is closed.
|
|
Delete ( ) : void |
Deletes the from S3.
|
|
MoveFromLocal ( string path ) : |
Moves the file from the local file system to S3 in this directory. If the file already exists in S3 than an ArgumentException is thrown.
|
|
MoveFromLocal ( string path, bool overwrite ) : |
Moves the file from the local file system to S3 in this directory. If the file already exists in S3 and overwrite is set to false than an ArgumentException is thrown.
|
|
MoveTo ( S3DirectoryInfo path ) : |
Moves the file to a a new location in S3.
|
|
MoveTo ( |
Moves the file to a a new location in S3.
|
|
MoveTo ( string bucket, string key ) : |
Moves the file to a a new location in S3.
|
|
MoveToLocal ( string path ) : |
Moves the file from S3 to the local file system in the location indicated by the path parameter.
|
|
OpenRead ( ) : Stream |
Returns a Stream for reading the contents of the file.
|
|
OpenText ( ) : |
Returns a StreamReader for reading the contents of the file.
|
|
OpenWrite ( ) : Stream |
Returns a Stream for writing to S3. If the file already exists it will be overwritten.
|
|
Replace ( S3DirectoryInfo destDir, S3DirectoryInfo backupDir ) : |
Replaces the destination file with the content of this file and then deletes the orignial file. If a backupDir is specifed then the content of destination file is backup to it.
|
|
Replace ( |
Replaces the destination file with the content of this file and then deletes the orignial file. If a backupFile is specifed then the content of destination file is backup to it.
|
|
Replace ( string destinationBucket, string destinationKey, string backupBucket, string backupKey ) : |
Replaces the destination file with the content of this file and then deletes the orignial file. If a backup location is specifed then the content of destination file is backup to it.
|
|
ReplaceLocal ( string destinationFileName, string destinationBackupFileName ) : |
Replaces the content of the destination file on the local file system with the content from this file from S3. If a backup file is specified then the content of the destination file is backup to it.
|
|
S3FileInfo ( IAmazonS3 s3Client, string bucket, string key ) : System |
Initialize a new instance of the S3FileInfo class for the specified S3 bucket and S3 object key.
|
|
ToString ( ) : string |
Method | Description | |
---|---|---|
ExistsWithBucketCheck ( bool &bucketExists ) : bool | ||
SameClient ( |
public CopyFromLocal ( string srcFileName ) : |
||
srcFileName | string | Location of the file on the local file system to copy. |
return |
public CopyFromLocal ( string srcFileName, bool overwrite ) : |
||
srcFileName | string | Location of the file on the local file system to copy. |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public CopyTo ( S3DirectoryInfo dir ) : |
||
dir | S3DirectoryInfo | Target directory where to copy the file to. |
return |
public CopyTo ( S3DirectoryInfo dir, bool overwrite ) : |
||
dir | S3DirectoryInfo | Target directory where to copy the file to. |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public CopyTo ( |
||
file | The target location to copy this file to. | |
return |
public CopyTo ( |
||
file | The target location to copy this file to. | |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public CopyTo ( string newBucket, string newKey ) : |
||
newBucket | string | S3 bucket to copy the file to. |
newKey | string | S3 object key to copy the file to. |
return |
public CopyTo ( string newBucket, string newKey, bool overwrite ) : |
||
newBucket | string | S3 bucket to copy the file to. |
newKey | string | S3 object key to copy the file to. |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public CopyToLocal ( string destFileName ) : |
||
destFileName | string | The path where to copy the file to. |
return |
public CopyToLocal ( string destFileName, bool overwrite ) : |
||
destFileName | string | The path where to copy the file to. |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public MoveFromLocal ( string path ) : |
||
path | string | The local file system path where the files are to be moved. |
return |
public MoveFromLocal ( string path, bool overwrite ) : |
||
path | string | The local file system path where the files are to be moved. |
overwrite | bool | Determines whether the file can be overwritten. |
return |
public MoveTo ( S3DirectoryInfo path ) : |
||
path | S3DirectoryInfo | The target directory to copy to. |
return |
public MoveTo ( |
||
file | The target file to copy to. | |
return |
public MoveTo ( string bucket, string key ) : |
||
bucket | string | Bucket to move the file to. |
key | string | Object key to move the file to. |
return |
public MoveToLocal ( string path ) : |
||
path | string | The location on the local file system to move the file to. |
return |
public Replace ( S3DirectoryInfo destDir, S3DirectoryInfo backupDir ) : |
||
destDir | S3DirectoryInfo | Where the contents of this file will be copy to. |
backupDir | S3DirectoryInfo | If specified the destFile is backup to it. |
return |
public Replace ( |
||
destFile | Where the contents of this file will be copy to. | |
backupFile | If specified the destFile is backup to it. | |
return |
public Replace ( string destinationBucket, string destinationKey, string backupBucket, string backupKey ) : |
||
destinationBucket | string | Destination bucket of this file will be copy to. |
destinationKey | string | Destination object key of this file will be copy to. |
backupBucket | string | Backup bucket to store the contents of the destination file. |
backupKey | string | Backup object key to store the contents of the destination file. |
return |
public ReplaceLocal ( string destinationFileName, string destinationBackupFileName ) : |
||
destinationFileName | string | |
destinationBackupFileName | string | |
return |
public S3FileInfo ( IAmazonS3 s3Client, string bucket, string key ) : System | ||
s3Client | IAmazonS3 | S3 client which is used to access the S3 resources. |
bucket | string | Name of the S3 bucket. |
key | string | The S3 object key. |
return | System |