Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

170
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda