January 2010
1 post
How to Rename a File on S3 with right_aws and Keep...
Because this took way too much time to figure out: s3=RightAws::S3Interface.new(S3SwfUpload::S3Config.access_key_id, S3SwfUpload::S3Config.secret_access_key) old_name = "tmp/#{self.video_file_name}" new_name = original_video_file_path bucket = S3SwfUpload::S3Config.bucket (1..5).each do |try| begin acl_prop = s3.get_acl(bucket, old_name) s3.rename(bucket, old_name, new_name) ...
Jan 8th