def mv_file_s3(s3_connection, src_path, dst_path):
 (src_bucket_name, src_key_name) = _from_path(src_path)
 (dst_bucket_name, dst_key_name) = _from_path(dst_path)
 src_bucket = s3_connection.get_bucket(src_bucket_name)
 k = boto.s3.Key(src_bucket)
 k.key = src_key_name
 k.copy(dst_bucket_name, dst_key_name)
 k.delete()

def mv_file_s3 ( s3_connection , src_path , dst_path ) : ( src_bucket_name , src_key_name ) = _from_path ( src_path ) ( dst_bucket_name , dst_key_name ) = _from_path ( dst_path ) src_bucket = s3_connection . get_bucket ( src_bucket_name ) k = boto . s3 . Key ( src_bucket ) k . key = src_key_name k . copy ( dst_bucket_name , dst_key_name ) k . delete ( )
move a file within s3 .