Answers for "boto3 rename file s3"

0

boto3 rename file s3

copy_source = {'Bucket': 'source__bucket', 'Key': 'my_folder/my_file'}
s3.copy_object(CopySource = copy_source, Bucket = 'dest_bucket', Key = 'new_folder/my_file')
s3.delete_object(Bucket = 'source_bucket', Key = 'my_folder/my_file')
Posted by: Guest on May-26-2021

Python Answers by Framework

Browse Popular Code Answers by Language