rohitcoder / BBB-AWS-S3

This script is written in python, and it keeps migrating your all recorded videos/sessions from Big Blue Button server to your desired s3 bucket.
15 stars 7 forks source link

Unable to copy to specific folders #4

Closed iFieldSmart-Tech closed 4 years ago

iFieldSmart-Tech commented 4 years ago

I am trying to move recordings to a specific folder in my s3 bucket. I have entered the following line in the file writing.js, const url = "https://my-bucket-name.amazonaws.com/My-Folder-Name/"+meetingId;; But it still copies the folder into the root folder, in the bucket and not in the subdirectory "My-Folder-Name". Am i doing anything wrong or is this a limitation within the code?

rohitcoder commented 4 years ago

@iFieldSmart-Tech ,

You need to change a line of code in bbb-s3.py

Can you please try this, and let me know if this works.

openn bbb-s3.py at change line 60

From

uploaded = upload_to_aws(elem, BUCKET_NAME, relative_path)

To

uploaded = upload_to_aws(elem, BUCKET_NAME, "My-Folder-Name"+"/"+relative_path)
iFieldSmart-Tech commented 4 years ago

That got it working! Thanks a lot Rohit!