def do_upload(self, args):

        """Upload file to dtf client directory"""

        parser = ArgumentParser(prog='client upload',
                        description='Upload file to device.')
        parser.add_argument('--path', metavar="val", dest='upload_path',
                        default=DEFAULT_PATH, help="Specify a upload point.")
        parser.add_argument('file_name', type=str,
                         help='The file to upload.')

        args = parser.parse_args(args)

        file_name = args.file_name
        upload_path = args.upload_path

        if not isfile(file_name):
            log.e(self.name, "File does not exist: %s" % file_name)
            return -1

        log.i(self.name, "Waiting for device to be connected...")
        self.adb.wait_for_device()

        # Is client installed?
        if not self.adb.is_installed(DTF_CLIENT):
            log.e(self.name, "dtf Client is not installed!")
            return -1

        self.adb.push(file_name, upload_path)

        upload_file_name = "%s/%s" % (upload_path, file_name)
        dtf_upload_path = DTF_CLIENT % "/data/data/%s/"

        cmd = ("run-as %s cp %s %s" %
                (DTF_CLIENT, upload_file_name, dtf_upload_path))

        self.adb.shell_command(cmd)

        return 0
dataset/ETHPy150Open jakev/dtf/src/dtf/core/cmds/client.py/client.do_upload/swapped operands of `%`