@@ -1180,7 +1180,7 @@ def remove(self, entry, rm_children=True, timeout=DEFAULT_TIMEOUT):
1180
1180
1181
1181
All files in a directory must be deleted before removing the directory.
1182
1182
On XBee 3 802.15.4, DigiMesh, and Zigbee, deleted files are marked as
1183
- as unusable space unless they are at the "end" of the file system
1183
+ unusable space unless they are at the "end" of the file system
1184
1184
(most-recently created). On these products, deleting a file triggers
1185
1185
recovery of any deleted file space at the end of the file system, and
1186
1186
can lead to a delayed response.
@@ -1263,7 +1263,7 @@ def read_file(self, file, offset=0, progress_cb=None):
1263
1263
offset (Integer, optional, default=0): File offset to start
1264
1264
reading.
1265
1265
progress_cb (Function, optional, default=`None`): Function called
1266
- when new data is read. Receives three arguments:
1266
+ when new data is read. Receives four arguments:
1267
1267
1268
1268
* The chunk of data read as byte array.
1269
1269
* The progress percentage as float.
@@ -1293,8 +1293,8 @@ def write_file(self, file, offset=0, secure=False, options=None, progress_cb=Non
1293
1293
file (:class:`.FileSystemElement` or String): File to write or its
1294
1294
absolute path.
1295
1295
offset (Integer, optional, default=0): File offset to start writing.
1296
- secure (Boolean, optional, default=`False`):`True` to store the file
1297
- securely (no read access), `False` otherwise.
1296
+ secure (Boolean, optional, default=`False`): `True` to store the
1297
+ file securely (no read access), `False` otherwise.
1298
1298
options (Dictionary, optional): Other write options as list:
1299
1299
`exclusive`, `truncate`, `append`.
1300
1300
progress_cb (Function, optional, default=`None`): Function call
@@ -1339,7 +1339,7 @@ def get_file(self, src, dest, progress_cb=None):
1339
1339
its absolute path.
1340
1340
dest (String): The absolute path of the destination file.
1341
1341
progress_cb (Function, optional): Function call when data is being
1342
- downloaded. Receives one argument :
1342
+ downloaded. Receives three arguments :
1343
1343
1344
1344
* The progress percentage as float.
1345
1345
* Destination file path.
@@ -1387,7 +1387,7 @@ def put_file(self, src, dest, secure=False, overwrite=False,
1387
1387
Uploads the given file to the specified destination path of the XBee.
1388
1388
1389
1389
Args:
1390
- src (String): Absolute path of the File to upload.
1390
+ src (String): Absolute path of the file to upload.
1391
1391
dest (:class:`.FileSystemElement` or String): The file in the XBee
1392
1392
or its absolute path.
1393
1393
secure (Boolean, optional, default=`False`): `True` if the file
@@ -1397,7 +1397,7 @@ def put_file(self, src, dest, secure=False, overwrite=False,
1397
1397
mk_parents (Boolean, optional, default=`True`): `True` to make
1398
1398
parent directories as needed, `False` otherwise.
1399
1399
progress_cb (Function, optional): Function call when data is being
1400
- uploaded. Receives one argument :
1400
+ uploaded. Receives two arguments :
1401
1401
1402
1402
* The progress percentage as float.
1403
1403
* Destination file path.
@@ -1477,7 +1477,7 @@ def put_dir(self, src, dest="/flash", verify=True, progress_cb=None):
1477
1477
verify (Boolean, optional, default=`True`): `True` to check the
1478
1478
hash of the uploaded content.
1479
1479
progress_cb (Function, optional): Function call when data is being
1480
- uploaded. Receives two argument:
1480
+ uploaded. Receives three argument:
1481
1481
1482
1482
* The progress percentage as float.
1483
1483
* Destination file path.
@@ -3295,7 +3295,7 @@ def update_remote_filesystem_image(remote_device, ota_filesystem_file,
3295
3295
ota_filesystem_file (String): Path of the OTA filesystem file to upload.
3296
3296
max_block_size (Integer, optional): Maximum size of the ota block to send.
3297
3297
timeout (Integer, optional): Timeout to wait for remote frame requests.
3298
- progress_callback (Function, optional): Function to execute to receiveç
3298
+ progress_callback (Function, optional): Function to execute to receive
3299
3299
progress information. Receives two arguments:
3300
3300
3301
3301
* The current update task as a String
0 commit comments