forked from avalonmediasystem/avalon
-
Notifications
You must be signed in to change notification settings - Fork 0
Carrick's Page O' Stuff
Carrick Rogers edited this page Jun 15, 2017
·
3 revisions
This all needs to be formatted into nice developer documents at some point
In irb
require 'aws-sdk'
bucket = Aws::S3::Bucket.new(name: BUCKETNAME )
paths = bucket.objects.select { |o| o.key =~ %r{^pending/02/.+\.mp4$} }.collect { |o| "s3://#{o.bucket_name}/#{o.key}" }
This gives you the path of everything in bucket/pending/02/ that is a mp4 and can be used for the split job, etc
aws configure if needed
aws s3 sync /avalon-streams/01 s3://avalon-derivatives-cfx3wj9/pending/