boto3 rename file s3

Solutions on MaxInterview for boto3 rename file s3 by the best coders in the world

showing results for - "boto3 rename file s3"
Anton
24 Nov 2018
1copy_source = {'Bucket': 'source__bucket', 'Key': 'my_folder/my_file'}
2s3.copy_object(CopySource = copy_source, Bucket = 'dest_bucket', Key = 'new_folder/my_file')
3s3.delete_object(Bucket = 'source_bucket', Key = 'my_folder/my_file')
4