Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

s3 list objects in folder node js

var AWS = require('aws-sdk');
AWS.config.update({accessKeyId: 'mykey', secretAccessKey: 'mysecret', region: 'myregion'});
var s3 = new AWS.S3();

var params = { 
 Bucket: 'mystore.in',
 Delimiter: '/',
 Prefix: 's/5469b2f5b4292d22522e84e0/ms.files/'
}

s3.listObjects(params, function (err, data) {
 if(err)throw err;
 console.log(data);
});
Comment

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
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: string contains in javascript 
Javascript :: node get current url 
Javascript :: js read date from milliseconds 
Javascript :: onload multiple functions 
Javascript :: javascript check if elements of one array are in another 
Javascript :: how to add a shadow react native 
Javascript :: js promis with ajax 
Javascript :: remove animation css javascript 
Javascript :: how to return 5 records instead of 10 records in datatable in laravel 
Javascript :: how to display items quantity into select input field 
Javascript :: javascript backticks 
Javascript :: how to create react native project at specific version 
Javascript :: detect two strings are anagram of each other in JavaScript 
Javascript :: js delete object in dict 
Javascript :: style react background 
Javascript :: nested array of object shows as object in console log output js 
Javascript :: use regex to get urls from string 
Javascript :: datatable column width 
Javascript :: js check if element hidden 
Javascript :: link regex 
Javascript :: javascript date to string format 
Javascript :: string to int js 
Javascript :: easy way to create infinite loop in javascript 
Javascript :: javascript string array sort alphabetically 
Javascript :: redux useselector 
Javascript :: convert timestamp to date javascript 
Javascript :: scroll down up js 
Javascript :: mui how to set background in theme 
Javascript :: react deep copy 
Javascript :: joi schema for confirm password 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =