Im trying to achieve :
- Read all the files from the s3 directory.
- copy all the files to backup directory on s3.
- aggregate all the file contents to a single file and copy it to the another directory on s3.
But Im stuck on the first point to read all the files in a single poll.
my from router :
aws-s3://${camel.bucket.name}?amazonS3Client=#s3Client&prefix=some_path_on_s3&deleteAfterRead=true&delay=100s
for example if, some_path_on_s3 -> has 2 files say first.txt and
second.txt
according to camel documentation, it has to read both the files in a
single poll, but is reading 1 file per poll.
I also tried with parameter, maxMessagesPerPoll=2 but no luck. It
still reads one file per poll.
Is there a way to fetch all the files from s3 directory in a single poll ?