#NEWLINE# def transfer( self , name , local , remote , **kwargs ) : #NEWLINE# #INDENT# '\n        Transfers the file with the given name from the local to the remote\n        storage backend.\n\n        :param name: The name of the file to transfer\n        :param local: The local storage backend instance\n        :param remote: The remote storage backend instance\n        :returns: `True` when the transfer succeeded, `False` if not. Retries\n                  the task when returning `False`\n        :rtype: bool\n        ' #NEWLINE# try : #NEWLINE# #INDENT# remote . save ( name , local . open ( name ) ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logger . error ( ( "Unable to save '%s' to remote storage. About to retry." % remote ) ) #NEWLINE# logger . exception ( e ) #NEWLINE# return False