samedi 27 décembre 2014

Upload entire directory tree to S3 using AWS sdk in node js

I currently upload single objects to S3 using like so:



var options = {
Bucket: bucket,
Key: s3Path,
Body: body,
ACL: s3FilePermissions
};

S3.putObject(options,
function (err, data) {
//console.log(data);
});


But when I have a large resources folder for example, I use the AWS CLI tool.

I was wondering, is there a native way to do the same thing with the aws sdk (upload entire folders to s3)?





Aucun commentaire:

Enregistrer un commentaire