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

branch
eric7
changeset 10515
6e790462348a
parent 10479
856476537696
child 11190
f5ffdf0164ab
--- a/src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html	Fri Jan 19 09:50:47 2024 +0100
+++ b/src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html	Sat Jan 20 12:36:40 2024 +0100
@@ -176,6 +176,10 @@
 <td>Public slot to get the current directory of the device.</td>
 </tr>
 <tr>
+<td><a href="#MicroPythonFileManager.rename">rename</a></td>
+<td>Public method to rename a file on the device.</td>
+</tr>
+<tr>
 <td><a href="#MicroPythonFileManager.rmdir">rmdir</a></td>
 <td>Public slot to (recursively) remove a directory.</td>
 </tr>
@@ -451,6 +455,36 @@
         Public slot to get the current directory of the device.
 </p>
 
+<a NAME="MicroPythonFileManager.rename" ID="MicroPythonFileManager.rename"></a>
+<h4>MicroPythonFileManager.rename</h4>
+<b>rename</b>(<i>oldname, newname</i>)
+<p>
+        Public method to rename a file on the device.
+</p>
+
+<dl>
+
+<dt><i>oldname</i> (str)</dt>
+<dd>
+current name of the file
+</dd>
+<dt><i>newname</i> (str)</dt>
+<dd>
+new name for the file
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+flag indicating success
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
 <a NAME="MicroPythonFileManager.rmdir" ID="MicroPythonFileManager.rmdir"></a>
 <h4>MicroPythonFileManager.rmdir</h4>
 <b>rmdir</b>(<i>dirname, recursive=False</i>)

eric ide

mercurial