Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First class API for recursive directory uploads for S3 #6498

Open
2 tasks
just-boris opened this issue Sep 19, 2024 · 1 comment
Open
2 tasks

First class API for recursive directory uploads for S3 #6498

just-boris opened this issue Sep 19, 2024 · 1 comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback. p3 This is a minor priority issue queued This issues is on the AWS team's backlog

Comments

@just-boris
Copy link
Member

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

@just-boris just-boris added feature-request New feature or enhancement. May require GitHub community feedback. needs-triage This issue or PR still needs to be triaged. labels Sep 19, 2024
@aBurmeseDev
Copy link
Member

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:

  • S3 Transfer Manager isn't currently available in JS SDK v3, at the moment. However, @aws-sdk/lib-storage can be used to recursively upload files from a directory.
  • This feature for recursive downloads is already available is available in AWS CLI and boto3: https://github.com/boto/s3transfer
  • There is a similar open issue #5934 on the repository, but it is specifically for downloads.

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

@aBurmeseDev aBurmeseDev added p3 This is a minor priority issue queued This issues is on the AWS team's backlog and removed needs-triage This issue or PR still needs to be triaged. labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback. p3 This is a minor priority issue queued This issues is on the AWS team's backlog
Projects
None yet
Development

No branches or pull requests

2 participants