Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi iam prasad, i able to upload a folder but not multiple folders(folder with in folders) but i want how to download a folder from amazon s3 using C#. plz help me asap..
Thanks.
Posted

Hi ,

you basically have to use there TransferUtility class to Download the folder you want using DownloadDirectoryAsync or DownloadDirectory Method-->

var fileTransferUtility = new TransferUtility(s3Client);
await fileTransferUtility.DownloadDirectoryAsync( bucketName, "*** AWS Directory you want to download ***", "*** Your destination path ***");
 
Share this answer
 
Comments
OriginalGriff 16-Feb-19 8:44am    
While I applaud your urge to help people, it's a good idea to stick to new questions, rather than 8 year old, ones. After that amount of time, it's unlikely that teh original poster is at all interested in the problem any more!
Answering old questions can be seen as rep-point hunting, which is a form of site abuse. The more trigger happy amongst us will start the process of banning you from the site if you aren't careful. Stick to new questions and you'll be fine.
present i d't have code...


ListObjectsRequest Lor = new ListObjectsRequest()
{
BucketName = "BucketName",

Delimiter = "/" // When removing this one at the time only one folder is downloaded remaing folders is not downloaded.
};
ListObjectsResponse response1 = s3Client.ListObjects(Lor);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900