@@ -227,11 +227,12 @@ The full list of supported commands are:
227
227
- ``cat <file..> `` to show the contents of a file or files on the device
228
228
- ``ls `` to list the current directory
229
229
- ``ls <dirs...> `` to list the given directories
230
- - ``cp [-r ] <src...> <dest> `` to copy files
230
+ - ``cp [-rf ] <src...> <dest> `` to copy files
231
231
- ``rm <src...> `` to remove files on the device
232
232
- ``mkdir <dirs...> `` to create directories on the device
233
233
- ``rmdir <dirs...> `` to remove directories on the device
234
234
- ``touch <file..> `` to create the files (if they don't already exist)
235
+ - ``sha256sum <file..> `` to calculate the SHA256 sum of files
235
236
236
237
The ``cp `` command uses a convention where a leading ``: `` represents a remote
237
238
path. Without a leading ``: `` means a local path. This is based on the
@@ -256,6 +257,11 @@ The full list of supported commands are:
256
257
This will copy the file to the device then enter the REPL. The ``+ `` prevents
257
258
``"repl" `` being interpreted as a path.
258
259
260
+ The ``cp `` command supports the ``-r `` option to make a recursive copy. By
261
+ default ``cp `` will skip copying files to the remote device if the SHA256 hash
262
+ of the source and destination file matches. To force a copy regardless of the
263
+ hash use the ``-f `` option.
264
+
259
265
**Note: ** For convenience, all of the filesystem sub-commands are also
260
266
:ref: `aliased as regular commands <mpremote_shortcuts >`, i.e. you can write
261
267
``mpremote cp ... `` instead of ``mpremote fs cp ... ``.
0 commit comments