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

Signed-off-by: Damien George <damien@micropython.org>
pull/9091/head
Damien George 2022-08-23 17:25:54 +10:00
rodzic 858707181d
commit 24f1161fe2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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