#NEWLINE# def _handle_upload( file_cache , path , body , cache_token = None ) : #NEWLINE# #INDENT# source = cache_token #NEWLINE# if cache_token : #NEWLINE# #INDENT# cached_file = file_cache . destination ( cache_token ) #NEWLINE# source = open ( cached_file , 'rb' ) #NEWLINE# log . info ( ( 'Copying cached file %s to %s' % ( cached_file , path ) ) ) #NEWLINE# #UNINDENT# copy_to_path ( source , path ) #NEWLINE# return { #NEWLINE# #INDENT# 'path' : path , #NEWLINE# #UNINDENT# }