diff options
author | Damien George <damien@micropython.org> | 2022-08-23 17:25:54 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-08-26 13:30:03 +1000 |
commit | 24f1161fe21df146b64a657acadf67e723040636 (patch) | |
tree | a78dc93c446f1606ee07963b94402b2c44c8e98c /tools/pyboard.py | |
parent | 858707181d907b96fe55e786defa8947e404ab91 (diff) |
tools/pyboard.py: Remove implicit fs_put if source starts with ./.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tools/pyboard.py')
-rwxr-xr-x | tools/pyboard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index 752504987..8c4696c43 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) |