1

I am using the AWS-CPP-SDK TransferManager for downloading files and folders(recursively) from S3 bucket. In this example code the transfer handler triggers directoryDownloadSignal.notify_one() after 3 file downloads have started.

I am looking to recursively download from a folder without number of files known previously. How can I replace the if (directoryUploads.size() == 3) statement appropriately ?

bawejakunal
  • 1,678
  • 2
  • 25
  • 54
  • 1
    Please check your hyperlink to the "example code." It looks like you may have linked to a local file. It's not a working link. – Michael - sqlbot Jun 28 '17 at 01:10
  • 1
    @Michael-sqlbot fixed it. Thanks :) – bawejakunal Jun 28 '17 at 02:32
  • Currently, You don't know when it's going to finish because neither you nor the SDK know how many files remain to be downloaded. But we can implement a new way to notify users when it's done with downloading. We'll do that soon. – user2706071 Aug 03 '17 at 23:20
  • @user2706071 yes that would be great. The Java and Python SDKs provide ways to do so. Implementing in C++ would be really great. – bawejakunal Aug 04 '17 at 19:10

0 Answers0