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

branch
eric7
changeset 9760
11245ac9c258
parent 9236
db53a9efe7ef
child 9765
6378da868bb0
equal deleted inserted replaced
9759:4543b7876047 9760:11245ac9c258
79 <dt>longListFiles(result)</dt> 79 <dt>longListFiles(result)</dt>
80 <dd> 80 <dd>
81 emitted with a tuple of tuples containing the 81 emitted with a tuple of tuples containing the
82 name, mode, size and time for each directory entry 82 name, mode, size and time for each directory entry
83 </dd> 83 </dd>
84 <dt>putDataDone(deviceFile)</dt>
85 <dd>
86 emitted after data has been save to a file
87 on the connected device
88 </dd>
84 <dt>putFileDone(localFile, deviceFile)</dt> 89 <dt>putFileDone(localFile, deviceFile)</dt>
85 <dd> 90 <dd>
86 emitted after the file was 91 emitted after the file was
87 copied to the connected device 92 copied to the connected device
88 </dd> 93 </dd>
140 <tr> 145 <tr>
141 <td><a href="#MicroPythonFileManager.get">get</a></td> 146 <td><a href="#MicroPythonFileManager.get">get</a></td>
142 <td>Public slot to get a file from the connected device.</td> 147 <td>Public slot to get a file from the connected device.</td>
143 </tr> 148 </tr>
144 <tr> 149 <tr>
150 <td><a href="#MicroPythonFileManager.getData">getData</a></td>
151 <td>Public method to read data from the connected device.</td>
152 </tr>
153 <tr>
145 <td><a href="#MicroPythonFileManager.lls">lls</a></td> 154 <td><a href="#MicroPythonFileManager.lls">lls</a></td>
146 <td>Public slot to get a long listing of the given directory.</td> 155 <td>Public slot to get a long listing of the given directory.</td>
147 </tr> 156 </tr>
148 <tr> 157 <tr>
149 <td><a href="#MicroPythonFileManager.mkdir">mkdir</a></td> 158 <td><a href="#MicroPythonFileManager.mkdir">mkdir</a></td>
150 <td>Public slot to create a new directory.</td> 159 <td>Public slot to create a new directory.</td>
151 </tr> 160 </tr>
152 <tr> 161 <tr>
153 <td><a href="#MicroPythonFileManager.put">put</a></td> 162 <td><a href="#MicroPythonFileManager.put">put</a></td>
154 <td>Public slot to put a file onto the device.</td> 163 <td>Public slot to put a file onto the device.</td>
164 </tr>
165 <tr>
166 <td><a href="#MicroPythonFileManager.putData">putData</a></td>
167 <td>Public method to write data to the connected device.</td>
155 </tr> 168 </tr>
156 <tr> 169 <tr>
157 <td><a href="#MicroPythonFileManager.pwd">pwd</a></td> 170 <td><a href="#MicroPythonFileManager.pwd">pwd</a></td>
158 <td>Public slot to get the current directory of the device.</td> 171 <td>Public slot to get the current directory of the device.</td>
159 </tr> 172 </tr>
285 <dt><i>hostFileName</i> (str)</dt> 298 <dt><i>hostFileName</i> (str)</dt>
286 <dd> 299 <dd>
287 name of the local file 300 name of the local file
288 </dd> 301 </dd>
289 </dl> 302 </dl>
303 <a NAME="MicroPythonFileManager.getData" ID="MicroPythonFileManager.getData"></a>
304 <h4>MicroPythonFileManager.getData</h4>
305 <b>getData</b>(<i>deviceFileName</i>)
306
307 <p>
308 Public method to read data from the connected device.
309 </p>
310 <dl>
311
312 <dt><i>deviceFileName</i> (str)</dt>
313 <dd>
314 name of the file to read from
315 </dd>
316 </dl>
317 <dl>
318 <dt>Return:</dt>
319 <dd>
320 data read from the device
321 </dd>
322 </dl>
323 <dl>
324 <dt>Return Type:</dt>
325 <dd>
326 bytes
327 </dd>
328 </dl>
290 <a NAME="MicroPythonFileManager.lls" ID="MicroPythonFileManager.lls"></a> 329 <a NAME="MicroPythonFileManager.lls" ID="MicroPythonFileManager.lls"></a>
291 <h4>MicroPythonFileManager.lls</h4> 330 <h4>MicroPythonFileManager.lls</h4>
292 <b>lls</b>(<i>dirname, showHidden=False</i>) 331 <b>lls</b>(<i>dirname, showHidden=False</i>)
293 332
294 <p> 333 <p>
335 <dt><i>deviceFileName</i> (str)</dt> 374 <dt><i>deviceFileName</i> (str)</dt>
336 <dd> 375 <dd>
337 name of the file on the connected device 376 name of the file on the connected device
338 </dd> 377 </dd>
339 </dl> 378 </dl>
379 <a NAME="MicroPythonFileManager.putData" ID="MicroPythonFileManager.putData"></a>
380 <h4>MicroPythonFileManager.putData</h4>
381 <b>putData</b>(<i>deviceFileName, data</i>)
382
383 <p>
384 Public method to write data to the connected device.
385 </p>
386 <dl>
387
388 <dt><i>deviceFileName</i> (str)</dt>
389 <dd>
390 name of the file to write to
391 </dd>
392 <dt><i>content</i> (bytes)</dt>
393 <dd>
394 data to write
395 </dd>
396 </dl>
340 <a NAME="MicroPythonFileManager.pwd" ID="MicroPythonFileManager.pwd"></a> 397 <a NAME="MicroPythonFileManager.pwd" ID="MicroPythonFileManager.pwd"></a>
341 <h4>MicroPythonFileManager.pwd</h4> 398 <h4>MicroPythonFileManager.pwd</h4>
342 <b>pwd</b>(<i></i>) 399 <b>pwd</b>(<i></i>)
343 400
344 <p> 401 <p>

eric ide

mercurial