docs/reference: Fix pyboard.py filesystem cp example with three files.
Fix documentation to match behaviour (directories are not preserved). Fixes issue #11101. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
0d8388673e
commit
3d53b39a2a
@ -120,9 +120,8 @@ Some more examples::
|
|||||||
# Same, but using . instead.
|
# Same, but using . instead.
|
||||||
$ pyboard.py --device /dev/ttyACM0 -f cp :main.py .
|
$ pyboard.py --device /dev/ttyACM0 -f cp :main.py .
|
||||||
|
|
||||||
# Copy three files to the device, keeping their names
|
# 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 foo.py :
|
||||||
$ pyboard.py --device /dev/ttyACM0 -f cp main.py app.py lib/foo.py :
|
|
||||||
|
|
||||||
# Remove a file from the device.
|
# Remove a file from the device.
|
||||||
$ pyboard.py --device /dev/ttyACM0 -f rm util.py
|
$ pyboard.py --device /dev/ttyACM0 -f rm util.py
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user