#NEWLINE# def swift_copy_object( request , orig_container_name , orig_object_name , new_container_name , new_object_name ) : #NEWLINE# #INDENT# if swift_object_exists ( request , new_container_name , new_object_name ) : #NEWLINE# #INDENT# raise exceptions . AlreadyExists ( new_object_name , 'object' ) #NEWLINE# #UNINDENT# headers = { #NEWLINE# #INDENT# 'X-Copy-From' : FOLDER_DELIMITER . join ( [ orig_container_name , orig_object_name ] ) , #NEWLINE# #UNINDENT# } #NEWLINE# return swift_api ( request ) . put_object ( new_container_name , new_object_name , None , headers = headers )