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