summaryrefslogtreecommitdiffstatshomepage
path: root/docs/reference/pyboard.py.rst
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2022-08-18 12:34:15 +1000
committerDamien George <damien@micropython.org>2022-08-18 22:24:25 +1000
commit263737ecfea6ec1049ef3aff37913866ebd463e5 (patch)
tree150db357d8171326216610817744db89d2670c0b /docs/reference/pyboard.py.rst
parenta311e9e3d419cf447c8a4cf2beed4a341e8387e3 (diff)
downloadmicropython-263737ecfea6ec1049ef3aff37913866ebd463e5.tar.gz
micropython-263737ecfea6ec1049ef3aff37913866ebd463e5.zip
tools/pyboard.py: Add "touch" filesystem command.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'docs/reference/pyboard.py.rst')
-rw-r--r--docs/reference/pyboard.py.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference/pyboard.py.rst b/docs/reference/pyboard.py.rst
index 4fedbb7aab..a06ffdcd8f 100644
--- a/docs/reference/pyboard.py.rst
+++ b/docs/reference/pyboard.py.rst
@@ -92,12 +92,13 @@ Filesystem access
Using the ``-f`` flag, the following filesystem operations are supported:
-* ``cp src [src...] dest`` Copy files to/from the device.
* ``cat path`` Print the contents of a file on the device.
+* ``cp src [src...] dest`` Copy files to/from the device.
* ``ls [path]`` List contents of a directory (defaults to current working directory).
-* ``rm path`` Remove a file.
* ``mkdir path`` Create a directory.
+* ``rm path`` Remove a file.
* ``rmdir path`` Remove a directory.
+* ``touch path`` Create a file if it doesn't already exist.
The ``cp`` command uses a ``ssh``-like convention for referring to local and
remote files. Any path starting with a ``:`` will be interpreted as on the