Skip to content

Commit 3d53b39

Browse files
committed
docs/reference: Fix pyboard.py filesystem cp example with three files.
Fix documentation to match behaviour (directories are not preserved). Fixes issue micropython#11101. Signed-off-by: Damien George <damien@micropython.org>
1 parent 0d83886 commit 3d53b39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/reference/pyboard.py.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ Some more examples::
120120
# Same, but using . instead.
121121
$ pyboard.py --device /dev/ttyACM0 -f cp :main.py .
122122

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

127126
# Remove a file from the device.
128127
$ pyboard.py --device /dev/ttyACM0 -f rm util.py

0 commit comments

Comments
 (0)