I am trying to load the entire directory into s3 using the ruby aws-sdk gem. I first try to break it down into smaller problems, so what I'm trying to do now is just create one folder and then put the file inside this folder. I know that technically s3 does not have folders, but objects. I know you might have a directory-like structure. I can't find anything about how to do this on the Internet, and the docs don't mention much about the directory structure other than reading with AWS :: S3 :: Tree
This is my current attempt to create a folder and then add the file to the folder:
#created an object called test obj = bucket.objects.create('test', 'data')
What this actually does is write a css file for testing. I want it to create a css file inside a folder called test.
I am sure I do not understand how objects are related to directories. Can someone determine where I'm going, or point me in the right direction?
source share