Had a play with https://github.com/bulletmark/mpr?tab=readme-ov-file and ran into the same issue.
To copy all the files on the PC I did the following:
Leave boot.py and main.py in the root and make a directory called /home on the device. Put your program code in a directory called /home in your project directory on the PC.
In main.py you have to add:Then use these mpr commands:
Haven't found a way to recursively copy /home on the device to /home in the project directory on the PC
Note: there is a depth command to select which files and/or directories to remove.
To copy all the files on the PC I did the following:
Leave boot.py and main.py in the root and make a directory called /home on the device. Put your program code in a directory called /home in your project directory on the PC.
In main.py you have to add:
Code:
import syssys.path.append('/home')Code:
mpr rm --rf /homempr put /home/dave/my_program/home/*.py /homeNote: there is a depth command to select which files and/or directories to remove.
Statistics: Posted by davefes — Fri Feb 28, 2025 5:30 am