2012-05-30 69 views
0

我需要一個類,它在S3上獲取文件夾並將其所有內容(包括其他文件夾和文件)上載到FTP目錄。 什麼是最好的優化方式來處理?將S3目錄上傳到FTP

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 
+1

[你有什麼試過?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) –

回答