Browse Source

tools/mpremote: Handle `cp` without destination.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/11659/head
Jim Mussared 1 year ago
committed by Damien George
parent
commit
b6b19798c2
  1. 4
      tools/pyboard.py

4
tools/pyboard.py

@ -686,6 +686,10 @@ def filesystem_command(pyb, args, progress_callback=None, verbose=False):
args = args[1:]
try:
if cmd == "cp":
if len(args) == 1:
raise PyboardError(
"cp: missing destination file operand after '{}'".format(args[0])
)
srcs = args[:-1]
dest = args[-1]
if dest.startswith(":"):

Loading…
Cancel
Save