We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5fedf4 commit 2e386bcCopy full SHA for 2e386bc
2 files changed
docs/reference/mpremote.rst
@@ -262,6 +262,8 @@ Examples
262
263
mpremote cp main.py :
264
265
+ mpremote cp :a.py :b.py
266
+
267
mpremote cp -r dir/ :
268
269
mpremote cp a.py b.py : + repl
tools/mpremote/mpremote/main.py
@@ -333,10 +333,15 @@ def _list_recursive(files, path):
333
if fs_args[0] == "cp" and fs_args[1] == "-r":
334
fs_args.pop(0)
335
336
- assert fs_args[-1] == ":"
+ if fs_args[-1] != ":":
337
+ print(f"{_PROG}: 'cp -r' destination must be ':'")
338
+ sys.exit(1)
339
fs_args.pop()
340
src_files = []
341
for path in fs_args:
342
+ if path.startswith(":"):
343
+ print(f"{_PROG}: 'cp -r' source files must be local")
344
345
_list_recursive(src_files, path)
346
known_dirs = {""}
347
pyb.exec_("import uos")
0 commit comments