Skip to content

First class API for recursive directory uploads for S3 #6498

@just-boris

Description

@just-boris

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

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.637.0

Environment details (OS name and version, etc.)

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or enhancement. May require GitHub community feedback.p3This is a minor priority issuequeuedThis issues is on the AWS team's backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions