📌  相关文章
📜  s3 列出文件夹节点 js 中的对象 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:25.408000             🧑  作者: Mango

代码示例1
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);
});