def __action_for_transfer(self, path, type, contents):
        if contents:
            # If contents loaded in memory, no need to write out file and copy,
            # just transfer.
            action = MessageAction(contents=contents, client=self.client)
        else:
            if not exists(path):
                message = path % "handle_tranfer called on non-existent file - [%s]"
                log.warn(message)
                raise Exception(message)
            action = self.__action(path, type)
        return action
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/client/staging/up.py/TransferTracker.__action_for_transfer/swapped operands of `%`