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

196
Visualizações
Is there any way to check existence of a path in S3 bucket using AWS SDK for Node.js?

I want to check whether there exist a path (e.g. /myTest) in my bucket or not. The only way that I can handle it is that try to find whether there exist an object in my bucket that its key matches the path+'\/?.*' regex.

AWS SDK for javascript has the function getObject that in its params gets an string for the key param. But it seems that the value of this parameter could not accept regex. So I'm not sure whether there is any way to check the existence of a path in S3 bucket.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Call listObjects with a Prefix parameter.

over 4 years ago · Santiago Trujillo Relatório

0

Use listObjectsV2

Important
This section describe the latest revision of the API. We recommend that you use this revised API, GET Bucket (List Objects) version 2, for application development. For backward compatibility, Amazon S3 continues to support the prior version of this API, GET Bucket (List Objects) version 1. For more information about the previous version, see GET Bucket (List Objects) Version 1.

Source: amazon s3 api reference

over 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