174 <tr> |
174 <tr> |
175 <td><a href="#MicroPythonFileManager.pwd">pwd</a></td> |
175 <td><a href="#MicroPythonFileManager.pwd">pwd</a></td> |
176 <td>Public slot to get the current directory of the device.</td> |
176 <td>Public slot to get the current directory of the device.</td> |
177 </tr> |
177 </tr> |
178 <tr> |
178 <tr> |
|
179 <td><a href="#MicroPythonFileManager.rename">rename</a></td> |
|
180 <td>Public method to rename a file on the device.</td> |
|
181 </tr> |
|
182 <tr> |
179 <td><a href="#MicroPythonFileManager.rmdir">rmdir</a></td> |
183 <td><a href="#MicroPythonFileManager.rmdir">rmdir</a></td> |
180 <td>Public slot to (recursively) remove a directory.</td> |
184 <td>Public slot to (recursively) remove a directory.</td> |
181 </tr> |
185 </tr> |
182 <tr> |
186 <tr> |
183 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td> |
187 <td><a href="#MicroPythonFileManager.rsync">rsync</a></td> |
449 <b>pwd</b>(<i></i>) |
453 <b>pwd</b>(<i></i>) |
450 <p> |
454 <p> |
451 Public slot to get the current directory of the device. |
455 Public slot to get the current directory of the device. |
452 </p> |
456 </p> |
453 |
457 |
|
458 <a NAME="MicroPythonFileManager.rename" ID="MicroPythonFileManager.rename"></a> |
|
459 <h4>MicroPythonFileManager.rename</h4> |
|
460 <b>rename</b>(<i>oldname, newname</i>) |
|
461 <p> |
|
462 Public method to rename a file on the device. |
|
463 </p> |
|
464 |
|
465 <dl> |
|
466 |
|
467 <dt><i>oldname</i> (str)</dt> |
|
468 <dd> |
|
469 current name of the file |
|
470 </dd> |
|
471 <dt><i>newname</i> (str)</dt> |
|
472 <dd> |
|
473 new name for the file |
|
474 </dd> |
|
475 </dl> |
|
476 <dl> |
|
477 <dt>Return:</dt> |
|
478 <dd> |
|
479 flag indicating success |
|
480 </dd> |
|
481 </dl> |
|
482 <dl> |
|
483 <dt>Return Type:</dt> |
|
484 <dd> |
|
485 bool |
|
486 </dd> |
|
487 </dl> |
454 <a NAME="MicroPythonFileManager.rmdir" ID="MicroPythonFileManager.rmdir"></a> |
488 <a NAME="MicroPythonFileManager.rmdir" ID="MicroPythonFileManager.rmdir"></a> |
455 <h4>MicroPythonFileManager.rmdir</h4> |
489 <h4>MicroPythonFileManager.rmdir</h4> |
456 <b>rmdir</b>(<i>dirname, recursive=False</i>) |
490 <b>rmdir</b>(<i>dirname, recursive=False</i>) |
457 <p> |
491 <p> |
458 Public slot to (recursively) remove a directory. |
492 Public slot to (recursively) remove a directory. |