src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html

branch
eric7
changeset 11190
f5ffdf0164ab
parent 10515
6e790462348a
equal deleted inserted replaced
11189:289c7150ec4b 11190:f5ffdf0164ab
73 <dt>getFileDone(deviceFile, localFile)</dt> 73 <dt>getFileDone(deviceFile, localFile)</dt>
74 <dd> 74 <dd>
75 emitted after the file was 75 emitted after the file was
76 fetched from the connected device and written to the local file system 76 fetched from the connected device and written to the local file system
77 </dd> 77 </dd>
78 <dt>hashDone(deviceFile, hash)</dt>
79 <dd>
80 emitted after the hash has been calculated
81 for the file on the connected device
82 </dd>
78 <dt>longListFiles(result)</dt> 83 <dt>longListFiles(result)</dt>
79 <dd> 84 <dd>
80 emitted with a tuple of tuples containing the 85 emitted with a tuple of tuples containing the
81 name, mode, size and time for each directory entry 86 name, mode, size and time for each directory entry
82 </dd> 87 </dd>
101 </dd> 106 </dd>
102 <dt>rsyncProgressMessage(msg)</dt> 107 <dt>rsyncProgressMessage(msg)</dt>
103 <dd> 108 <dd>
104 emitted to send a message about what 109 emitted to send a message about what
105 rsync is doing 110 rsync is doing
111 </dd>
112 <dt>touchFileDone(deviceFile)</dt>
113 <dd>
114 emitted after the file has been touched
115 on the connected device
106 </dd> 116 </dd>
107 </dl> 117 </dl>
108 <h3>Derived from</h3> 118 <h3>Derived from</h3>
109 QObject 119 QObject
110 <h3>Class Attributes</h3> 120 <h3>Class Attributes</h3>
150 <tr> 160 <tr>
151 <td><a href="#MicroPythonFileManager.getData">getData</a></td> 161 <td><a href="#MicroPythonFileManager.getData">getData</a></td>
152 <td>Public method to read data from the connected device.</td> 162 <td>Public method to read data from the connected device.</td>
153 </tr> 163 </tr>
154 <tr> 164 <tr>
165 <td><a href="#MicroPythonFileManager.hashFile">hashFile</a></td>
166 <td>Public method to generate a hash of a file on the connected device.</td>
167 </tr>
168 <tr>
155 <td><a href="#MicroPythonFileManager.lls">lls</a></td> 169 <td><a href="#MicroPythonFileManager.lls">lls</a></td>
156 <td>Public slot to get a long listing of the given directory.</td> 170 <td>Public slot to get a long listing of the given directory.</td>
157 </tr> 171 </tr>
158 <tr> 172 <tr>
159 <td><a href="#MicroPythonFileManager.makedirs">makedirs</a></td> 173 <td><a href="#MicroPythonFileManager.makedirs">makedirs</a></td>
184 <td>Public slot to (recursively) remove a directory.</td> 198 <td>Public slot to (recursively) remove a directory.</td>
185 </tr> 199 </tr>
186 <tr> 200 <tr>
187 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td> 201 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td>
188 <td>Public slot to synchronize a local directory to the device.</td> 202 <td>Public slot to synchronize a local directory to the device.</td>
203 </tr>
204 <tr>
205 <td><a href="#MicroPythonFileManager.touchFile">touchFile</a></td>
206 <td>Public method to touch a file on the connected device.</td>
189 </tr> 207 </tr>
190 <tr> 208 <tr>
191 <td><a href="#MicroPythonFileManager.writeFile">writeFile</a></td> 209 <td><a href="#MicroPythonFileManager.writeFile">writeFile</a></td>
192 <td>Public method to write some text to a file on the connected device.</td> 210 <td>Public method to write some text to a file on the connected device.</td>
193 </tr> 211 </tr>
364 <dt>Return Type:</dt> 382 <dt>Return Type:</dt>
365 <dd> 383 <dd>
366 bytes 384 bytes
367 </dd> 385 </dd>
368 </dl> 386 </dl>
387 <a NAME="MicroPythonFileManager.hashFile" ID="MicroPythonFileManager.hashFile"></a>
388 <h4>MicroPythonFileManager.hashFile</h4>
389 <b>hashFile</b>(<i>deviceFileName, algorithm="sha256", chunkSize=256</i>)
390 <p>
391 Public method to generate a hash of a file on the connected device.
392 </p>
393
394 <dl>
395
396 <dt><i>deviceFileName</i> (str)</dt>
397 <dd>
398 name of the file on the connected device
399 </dd>
400 <dt><i>algorithm</i> (str (optional))</dt>
401 <dd>
402 hashing algorithm to be used (defaults to "sha256")
403 </dd>
404 <dt><i>chunkSize</i> (int (optional))</dt>
405 <dd>
406 size of data chunks to be sent to the algorithm
407 (defaults to 256)
408 </dd>
409 </dl>
369 <a NAME="MicroPythonFileManager.lls" ID="MicroPythonFileManager.lls"></a> 410 <a NAME="MicroPythonFileManager.lls" ID="MicroPythonFileManager.lls"></a>
370 <h4>MicroPythonFileManager.lls</h4> 411 <h4>MicroPythonFileManager.lls</h4>
371 <b>lls</b>(<i>dirname, showHidden=False</i>) 412 <b>lls</b>(<i>dirname, showHidden=False</i>)
372 <p> 413 <p>
373 Public slot to get a long listing of the given directory. 414 Public slot to get a long listing of the given directory.
528 <dt><i>localDevice</i> (bool)</dt> 569 <dt><i>localDevice</i> (bool)</dt>
529 <dd> 570 <dd>
530 flag indicating device access via local file system 571 flag indicating device access via local file system
531 </dd> 572 </dd>
532 </dl> 573 </dl>
574 <a NAME="MicroPythonFileManager.touchFile" ID="MicroPythonFileManager.touchFile"></a>
575 <h4>MicroPythonFileManager.touchFile</h4>
576 <b>touchFile</b>(<i>deviceFileName</i>)
577 <p>
578 Public method to touch a file on the connected device.
579 </p>
580
581 <dl>
582
583 <dt><i>deviceFileName</i> (str)</dt>
584 <dd>
585 name of the file on the connected device
586 </dd>
587 </dl>
533 <a NAME="MicroPythonFileManager.writeFile" ID="MicroPythonFileManager.writeFile"></a> 588 <a NAME="MicroPythonFileManager.writeFile" ID="MicroPythonFileManager.writeFile"></a>
534 <h4>MicroPythonFileManager.writeFile</h4> 589 <h4>MicroPythonFileManager.writeFile</h4>
535 <b>writeFile</b>(<i>filename, text</i>) 590 <b>writeFile</b>(<i>filename, text</i>)
536 <p> 591 <p>
537 Public method to write some text to a file on the connected device. 592 Public method to write some text to a file on the connected device.

eric ide

mercurial