tools/pyboard.py: Remove implicit fs_put if source starts with ./.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
858707181d
commit
24f1161fe2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user