← index #6980Issue #11101
Duplicate · high · value 3.258
QUERY · ISSUE

Pyboard.py doesn't keep file path with folders on windows

openby martinlombanaopened 2021-03-02updated 2021-03-12
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 · ISSUE

pyboard.py does not keep directory structure like proposed by docs

closedby pauloberopened 2023-03-22updated 2024-09-17
bugdocs
  • Current pyboard.py tool from the master branch

When i upload files like described in following docs:

# Copy three files to the device, keeping their names
# and paths (note: `lib` must exist on the device)
$ pyboard.py --device /dev/ttyACM0 -f cp main.py app.py lib/foo.py :

It puts all files into the root of the target device even if lib exists on the target device.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied