QUERY · ISSUE
Pyboard.py doesn't keep file path with folders on windows
tools
Hi, I am using the latest pyboard.py and, per the documentation, it will keep the path, providing that the folder exists also on destination, but it does not.
When executing this:
python pyboard.py --device COM4 -f cp srptools/context.py :
We get this, and the file is copied to the root.
cp srptools/context.py :context.py
Workaround: Specify the destination path manually.
python pyboard.py --device COM4 -f cp srptools/context.py :srptools/context.py
As a bonus, it would be nice if pyboard.py created the destination path if it doesn't exist.
Thanks!
CANDIDATE · PULL REQUEST
docs/reference/pyboard.py: Fix filesystem cp example with three files.
docs
Fix documentation to match behaviour (directories are not preserved).
Fixes issue #11101.