Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Listing Objects with multiple prefixes

My structure on AWS S3 is something like so:

photos
  -->  PA
  -->  NJ
  -->  NY
  --> etc...

As you can see it is a flat folder structure which lists each state.

My question is I would like to list all the objects in each folder based on some set of parameters. So in some cases I may want to load all objects in the PA and NY folder. In some other cases I may want to load all objects in the PA NJ folder.

I am aware that the prefix parameter in the listObjectsV2 function allows you to specify only one path. Is there a way to specify multiple paths(or prefixes) without making multiple separate calls?

Any help is appreciated.

Thank you.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Make multiple calls. You might be able to use a filter property in a single query, but even if you could, that would force S3 to iterate over every file in /photos/ to compare against your filter, which would be both slow and resource intensive.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!