0

I need a class that takes a folder on S3 and uploads all its content, including other folders and files to a FTP directory. What's the best optimized way to handle that?

var client = Amazon.AWSClientFactory.CreateAmazonS3Client();
var request = new ListObjectsRequest()
              .WithBucketName("My.SimpleBucket").WithMarker("MyFolder");

 using (ListObjectsResponse response = client.ListObjects(request))
 {
    // here I can get Key and Size and BucketName of each object, 
    // but to get the stream of each object I gotta
    // do again request for each...
    // and this doesn't sound very right to me
4

1 回答 1

-1

最简单的方法实际上只是使用协议适配器 - 尝试使用 SMEStorage 的 S3 到 FTP 存储协议。我将它用于我的 CPanel 备份。它位于:http ://smestorage.com/?p=static&page=CloudFTP

于 2012-05-31T20:52:16.447 回答