diff --git a/tools/pyboard.py b/tools/pyboard.py index 7525049875..8c4696c439 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -583,7 +583,7 @@ def filesystem_command(pyb, args, progress_callback=None, verbose=False): if cmd == "cp": srcs = args[:-1] dest = args[-1] - if srcs[0].startswith("./") or dest.startswith(":"): + if dest.startswith(":"): op = pyb.fs_put fmt = "cp %s :%s" dest = fname_remote(dest)