tools/pyboard.py: Remove implicit fs_put if source starts with ./.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-08-23 17:25:54 +10:00
parent 858707181d
commit 24f1161fe2
1 changed files with 1 additions and 1 deletions

View File

@ -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)