tools/pyboard.py: Fix joining of path in filesystem_command.

This was broken by 5327cd1021

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2023-03-22 15:17:55 +11:00
parent d54208a2ff
commit b5ceb9d577

View File

@@ -671,7 +671,7 @@ def filesystem_command(pyb, args, progress_callback=None, verbose=False):
if dest is None or dest == "": if dest is None or dest == "":
dest = src dest = src
elif dest == ".": elif dest == ".":
dest = "/".join(".", src) dest = "./" + src
elif dest.endswith("/"): elif dest.endswith("/"):
dest += src dest += src
return dest return dest