137 <tr> |
137 <tr> |
138 <td><a href="#MicroPythonFileManager.delete">delete</a></td> |
138 <td><a href="#MicroPythonFileManager.delete">delete</a></td> |
139 <td>Public slot to delete a file on the device.</td> |
139 <td>Public slot to delete a file on the device.</td> |
140 </tr> |
140 </tr> |
141 <tr> |
141 <tr> |
|
142 <td><a href="#MicroPythonFileManager.exists">exists</a></td> |
|
143 <td>Public method to check the existence of a file or directory.</td> |
|
144 </tr> |
|
145 <tr> |
142 <td><a href="#MicroPythonFileManager.fileSystemInfo">fileSystemInfo</a></td> |
146 <td><a href="#MicroPythonFileManager.fileSystemInfo">fileSystemInfo</a></td> |
143 <td>Public method to obtain information about the currently mounted file systems.</td> |
147 <td>Public method to obtain information about the currently mounted file systems.</td> |
144 </tr> |
148 </tr> |
145 <tr> |
149 <tr> |
146 <td><a href="#MicroPythonFileManager.get">get</a></td> |
150 <td><a href="#MicroPythonFileManager.get">get</a></td> |
153 <tr> |
157 <tr> |
154 <td><a href="#MicroPythonFileManager.lls">lls</a></td> |
158 <td><a href="#MicroPythonFileManager.lls">lls</a></td> |
155 <td>Public slot to get a long listing of the given directory.</td> |
159 <td>Public slot to get a long listing of the given directory.</td> |
156 </tr> |
160 </tr> |
157 <tr> |
161 <tr> |
|
162 <td><a href="#MicroPythonFileManager.makedirs">makedirs</a></td> |
|
163 <td>Public slot to create a new directory and all intermediates.</td> |
|
164 </tr> |
|
165 <tr> |
158 <td><a href="#MicroPythonFileManager.mkdir">mkdir</a></td> |
166 <td><a href="#MicroPythonFileManager.mkdir">mkdir</a></td> |
159 <td>Public slot to create a new directory.</td> |
167 <td>Public slot to create a new directory.</td> |
160 </tr> |
168 </tr> |
161 <tr> |
169 <tr> |
162 <td><a href="#MicroPythonFileManager.put">put</a></td> |
170 <td><a href="#MicroPythonFileManager.put">put</a></td> |
175 <td>Public slot to (recursively) remove a directory.</td> |
183 <td>Public slot to (recursively) remove a directory.</td> |
176 </tr> |
184 </tr> |
177 <tr> |
185 <tr> |
178 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td> |
186 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td> |
179 <td>Public slot to synchronize a local directory to the device.</td> |
187 <td>Public slot to synchronize a local directory to the device.</td> |
|
188 </tr> |
|
189 <tr> |
|
190 <td><a href="#MicroPythonFileManager.writeFile">writeFile</a></td> |
|
191 <td>Public method to write some text to a file on the connected device.</td> |
180 </tr> |
192 </tr> |
181 </table> |
193 </table> |
182 <h3>Static Methods</h3> |
194 <h3>Static Methods</h3> |
183 |
195 |
184 <table> |
196 <table> |
272 <dt><i>deviceFileName</i> (str)</dt> |
284 <dt><i>deviceFileName</i> (str)</dt> |
273 <dd> |
285 <dd> |
274 name of the file on the connected device |
286 name of the file on the connected device |
275 </dd> |
287 </dd> |
276 </dl> |
288 </dl> |
|
289 <a NAME="MicroPythonFileManager.exists" ID="MicroPythonFileManager.exists"></a> |
|
290 <h4>MicroPythonFileManager.exists</h4> |
|
291 <b>exists</b>(<i>pathname</i>) |
|
292 |
|
293 <p> |
|
294 Public method to check the existence of a file or directory. |
|
295 </p> |
|
296 <dl> |
|
297 |
|
298 <dt><i>pathname</i> (str)</dt> |
|
299 <dd> |
|
300 name of the path to check |
|
301 </dd> |
|
302 </dl> |
|
303 <dl> |
|
304 <dt>Return:</dt> |
|
305 <dd> |
|
306 flag indicating the existence |
|
307 </dd> |
|
308 </dl> |
|
309 <dl> |
|
310 <dt>Return Type:</dt> |
|
311 <dd> |
|
312 bool |
|
313 </dd> |
|
314 </dl> |
277 <a NAME="MicroPythonFileManager.fileSystemInfo" ID="MicroPythonFileManager.fileSystemInfo"></a> |
315 <a NAME="MicroPythonFileManager.fileSystemInfo" ID="MicroPythonFileManager.fileSystemInfo"></a> |
278 <h4>MicroPythonFileManager.fileSystemInfo</h4> |
316 <h4>MicroPythonFileManager.fileSystemInfo</h4> |
279 <b>fileSystemInfo</b>(<i></i>) |
317 <b>fileSystemInfo</b>(<i></i>) |
280 |
318 |
281 <p> |
319 <p> |
342 <dt><i>showHidden</i> (bool)</dt> |
380 <dt><i>showHidden</i> (bool)</dt> |
343 <dd> |
381 <dd> |
344 flag indicating to show hidden files as well |
382 flag indicating to show hidden files as well |
345 </dd> |
383 </dd> |
346 </dl> |
384 </dl> |
|
385 <a NAME="MicroPythonFileManager.makedirs" ID="MicroPythonFileManager.makedirs"></a> |
|
386 <h4>MicroPythonFileManager.makedirs</h4> |
|
387 <b>makedirs</b>(<i>dirname</i>) |
|
388 |
|
389 <p> |
|
390 Public slot to create a new directory and all intermediates. |
|
391 </p> |
|
392 <dl> |
|
393 |
|
394 <dt><i>dirname</i> (str)</dt> |
|
395 <dd> |
|
396 name of the directory to create |
|
397 </dd> |
|
398 </dl> |
347 <a NAME="MicroPythonFileManager.mkdir" ID="MicroPythonFileManager.mkdir"></a> |
399 <a NAME="MicroPythonFileManager.mkdir" ID="MicroPythonFileManager.mkdir"></a> |
348 <h4>MicroPythonFileManager.mkdir</h4> |
400 <h4>MicroPythonFileManager.mkdir</h4> |
349 <b>mkdir</b>(<i>dirname</i>) |
401 <b>mkdir</b>(<i>dirname</i>) |
350 |
402 |
351 <p> |
403 <p> |
444 <dt><i>localDevice</i> (bool)</dt> |
496 <dt><i>localDevice</i> (bool)</dt> |
445 <dd> |
497 <dd> |
446 flag indicating device access via local file system |
498 flag indicating device access via local file system |
447 </dd> |
499 </dd> |
448 </dl> |
500 </dl> |
|
501 <a NAME="MicroPythonFileManager.writeFile" ID="MicroPythonFileManager.writeFile"></a> |
|
502 <h4>MicroPythonFileManager.writeFile</h4> |
|
503 <b>writeFile</b>(<i>filename, text</i>) |
|
504 |
|
505 <p> |
|
506 Public method to write some text to a file on the connected device. |
|
507 </p> |
|
508 <dl> |
|
509 |
|
510 <dt><i>filename</i> (str)</dt> |
|
511 <dd> |
|
512 name of the file on the connected device |
|
513 </dd> |
|
514 <dt><i>text</i> (str)</dt> |
|
515 <dd> |
|
516 text to be written |
|
517 </dd> |
|
518 </dl> |
|
519 <dl> |
|
520 <dt>Return:</dt> |
|
521 <dd> |
|
522 flag indicating success |
|
523 </dd> |
|
524 </dl> |
|
525 <dl> |
|
526 <dt>Return Type:</dt> |
|
527 <dd> |
|
528 bool |
|
529 </dd> |
|
530 </dl> |
449 <div align="right"><a href="#top">Up</a></div> |
531 <div align="right"><a href="#top">Up</a></div> |
450 <hr /> |
532 <hr /> |
451 </body></html> |
533 </body></html> |