Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs s3 list objects from folder

var params = {
  Bucket: 'STRING_VALUE', /* required */
  Prefix: 'STRING_VALUE'  // Can be your folder name
};
s3.listObjectsV2(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #nodejs #list #objects #folder
ADD COMMENT
Topic
Name
8+9 =