aws / aws-sdk-js-v3

Modularized AWS SDK for JavaScript.
Apache License 2.0
3.12k stars 579 forks source link

First class API for recursive directory uploads for S3 #6498

Open just-boris opened 1 month ago

just-boris commented 1 month ago

Describe the feature

Allow something like the current Upload utility, but for multiple files

Use Case

Currently, this is possible with AWS CLI

aws s3 cp local-dir s3://my-bucket

But there is no way to write this using JS SDK

Proposed Solution

Something like this would work

const myDir = 'path/to/dir';

new MultiUpload({
   client: new S3Client(),
   files: fs.readdirSync(myDir)
});

Other Information

No response

Acknowledgements

SDK version used

3.637.0

Environment details (OS name and version, etc.)

n/a

aBurmeseDev commented 1 month ago

Hi @just-boris - thanks for submitting this feature request.

I understand that this was raised internally and will be further discussed within JavaScript SDK team for potential implementation.

A few notes for reference:

The queued label has been added to this request for further discussion. To anyone that comes across this, feel free 👍🏽 on the original post and provide additional comments with your specific use case to aid in the consideration of this feature request.

Best, John