Thanks, Claus. I'm sure you're correct and I've looked at the documentation for ListObjectsRequest. https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/s3/model/ListObjectsRequest.html
But it seems like something that is such a common need that it would be helpful IMO to include a note to that effect in the docs. On Wed, Mar 13, 2024 at 11:30 AM Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > Camel uses the AWS Java SDK and it set the prefix on this SDK so its > depends on if this SDK has any kind of support for wildcards. > As you write its likely it does not have that. > > You can try to dive into the AWS SDK and see more deeper. > > On Wed, Mar 13, 2024 at 7:19 PM Mitch Trachtenberg <mjt...@gmail.com> > wrote: > > > I cannot specifically find this stated in either AWS S3 or Camel > > documentation, but it appears that I can give a prefix 1234- to restrict > > Camel's (4.3.0) downloads to files starting 1234-, but cannot give a > prefix > > ????- to restrict Camel's downloads to files beginning with four > characters > > and a hyphen. > > > > I believe AWS CLI does provide a way to do this. If I'm correct, it > would > > be helpful if this could be added to the documentation. > > > > If someone were to want to instruct me in where/how to do that, I'd be > > happy to generate a pull request, but it might be easier to just add: > > "Note: due to AWS S3 limitations, the prefix parameter does not work with > > wildcards." > > > > It would be even more helpful, of course, if the component were modified > in > > some way to allow for wildcards. > > > > > -- > Claus Ibsen > ----------------- > @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >