Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

172
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda