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

134
Views
¿Me pueden ayudar a extraer datos de una función listObjectsInBucket de aws-sdk usando nodejs?

No estoy seguro de cómo extraer los datos de esta función a continuación. Es una función de aws-sdk. Puedo ver el registro de la consola, pero no puedo guardarlo en una variable... incluso si es una variable global.

Siempre he tenido problemas con este concepto... y si alguien pudiera ayudarme a darle más sentido, sería genial.

 const listObjectsInBucket = (bucketName) => { // Create the parameters for calling listObjects let pdfList = '' const bucketParams = { Bucket: bucketName, }; // Call S3 to obtain a list of the objects in the bucket s3.listObjects(bucketParams, function (err, data) { if (err) { console.log("Error", err); } else { pdfList = data // console.log("Success", data); } }); }

pdfList no está definido. :/

about 4 years ago · Juan Pablo Isaza
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!