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

Bulk upload files/folders #124

Open
kujain opened this issue Mar 23, 2016 · 1 comment
Open

Bulk upload files/folders #124

kujain opened this issue Mar 23, 2016 · 1 comment

Comments

@kujain
Copy link

kujain commented Mar 23, 2016

Thanks for such a well-written and robust S3 class!
I just had one issue: is there any way to copy a folder (recursively) to S3 from local?
Individual files can use S3::putObjectFile to upload to S3, but I cannot see any way to modify this to work with a folder name. I also tried using S3::putObjectString() which allowed me to copy a folder name, but it doesn't copy any contents of that folder.

Basically I want to copy an entire folder with its contents to S3. Hope there's a simple way for this?

Thanks!

@zerofill
Copy link

Figure I will answer this since I already did this...

Basically read the contents of the folder you want to upload files form. If you have the filenames in an array, you just loop through putting each one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants