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. |
리턴 |
public S3FileInfo Replace(S3DirectoryInfo destDir, S3DirectoryInfo backupDir)
{
S3FileInfo ret = Replace(
new S3FileInfo(destDir.S3Client, destDir.BucketName, string.Format(CultureInfo.InvariantCulture, "{0}{1}", destDir.ObjectKey, Name)),
backupDir == null ? null : new S3FileInfo(backupDir.S3Client, backupDir.BucketName, string.Format(CultureInfo.InvariantCulture, "{0}{1}", backupDir.ObjectKey, Name)));
return ret;
}