mpremote cp -r command fails with "mpremote: cp: -r not specified; omitting directory"
Port, board and/or hardware
ESP32 on a custom designed ESP32-s3 board
MicroPython version
MicroPython v1.25.0 on 2025-04-15; Generic ESP32S3 module with ESP32S3
Reproduction
- install mpremote using the instructions here.
- run the command
mpremote connect /dev/cu.usbserial-A5069RR4 cp -r configuration/ :configuration/to recursively copy theconfigurationdirectory to the board.
Expected behaviour
I expected the command to recursively copy all files within the configuration directory over to the board to a folder located at /configuration, and to create that folder if it doesn't exist. This expectation comes from the documentation on this page.
mpremote cp -r utils/ :utils/ + soft-reset repl
Same as above, but update the entire utils directory first.
Observed behaviour
The tool returns the following error:
$ mpremote connect /dev/cu.usbserial-A5069RR4 cp -r configuration/ :configuration/
cp configuration/ :configuration/
mpremote: cp: -r not specified; omitting directory
Additional Information
Running on a M1 MacBook Pro, macOS Sequoia 15.3.2.
Using mpremote 1.25.0.
Code of Conduct
Yes, I agree
unable to copy some file to waveshare s3 zero
Port, board and/or hardware
waveshare s3 zero
MicroPython version
I can copy AD9833.py but can't colorful20.png
/Users/peter/workspace/esp32-c6-micropython-lvgl/multimeter>cat Makefile
upload:
mpremote cp AD9833.py :
mpremote cp colorful20.png :
run:
mpremote reset && mpremote run multimeter.py
/Users/peter/workspace/esp32-c6-micropython-lvgl/multimeter>make upload
mpremote cp AD9833.py :
cp AD9833.py :
mpremote cp colorful20.png :
cp colorful20.png :
mpremote: Error with transport:
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
make: *** [upload] Error 1
Reproduction
mpremote cp colorful20.png :
Expected behaviour
No response
Observed behaviour
mpremote cp colorful20.png :
cp colorful20.png :
mpremote: Error with transport:
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
make: *** [upload] Error 1
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree