QUERY · ISSUE
mpremote gives false error if a destination directory doesn't exist for recursive copy
bugtools
Port, board and/or hardware
rp2040
MicroPython version
MicroPython v1.24.0 on 2024-10-25; Raspberry Pi Pico with RP2040
Reproduction
create a directory 'test' on the target and 'local' on host
then run:
mpremote cp -r local :testt
note typo in destination
Expected behaviour
the error message should be 'destination doesn't exist'
Observed behaviour
cp local :testt
mpremote: cp: -r not specified; omitting directory
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
CANDIDATE · ISSUE
docs: Please provide examples to show how to backup and restore the complete contents of flash.
docstools
Documentation URL
No response
Description
The title says it:
I have tried (and with help from warp) to get the syntax correct to recursively backup the flash contents to my computer. Among several things we arrived at:
mkdir ./pico_backup
mpremote fs cp -r :/ ./pico_backup
mpremote: 'cp -r' destination must be ‘:’
Being able to save and restore the complete contents of flash is (I would have thought) a very common task. Therefore please could we have these as examples in the docs?
Code of Conduct
Yes, I agree