src/eric7/Documentation/Source/eric7.MicroPython.Devices.DeviceBase.html

branch
eric7
changeset 9853
080e060a0383
parent 9847
d8c7ded575cb
child 9860
d34667faa686
diff -r b7aef103355a -r 080e060a0383 src/eric7/Documentation/Source/eric7.MicroPython.Devices.DeviceBase.html
--- a/src/eric7/Documentation/Source/eric7.MicroPython.Devices.DeviceBase.html	Mon Mar 06 11:39:26 2023 +0100
+++ b/src/eric7/Documentation/Source/eric7.MicroPython.Devices.DeviceBase.html	Mon Mar 06 16:13:42 2023 +0100
@@ -48,7 +48,8 @@
     commands are:
     <ul>
     <li>cd: change directory</li>
-    <li>fileSystemInfo: get information about the file system
+    <li>exists: test the existence of a file or directory on the device</li>
+    <li>fileSystemInfo: get information about the file system</li>
     <li>get: get a file from the connected device</li>
     <li>getData: read data of a file of the connected device</li>
     <li>lls: directory listing with meta data</li>
@@ -59,7 +60,7 @@
     <li>pwd: get the current directory</li>
     <li>rm: remove a file from the connected device</li>
     <li>rmdir: remove an empty directory</li>
-    <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash)
+    <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash)</li>
     </ul>
 </p>
 <p>
@@ -181,6 +182,10 @@
 <td>Public method to download the device firmware.</td>
 </tr>
 <tr>
+<td><a href="#BaseDevice.exists">exists</a></td>
+<td>Public method to check the existence of a file or directory.</td>
+</tr>
+<tr>
 <td><a href="#BaseDevice.fileSystemInfo">fileSystemInfo</a></td>
 <td>Public method to obtain information about the currently mounted file systems.</td>
 </tr>
@@ -766,6 +771,39 @@
 <p>
         Public method to download the device firmware.
 </p>
+<a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a>
+<h4>BaseDevice.exists</h4>
+<b>exists</b>(<i>pathname</i>)
+
+<p>
+        Public method to check the existence of a file or directory.
+</p>
+<dl>
+
+<dt><i>pathname</i> (str)</dt>
+<dd>
+name of the path to check
+</dd>
+</dl>
+<dl>
+<dt>Return:</dt>
+<dd>
+flag indicating the existence
+</dd>
+</dl>
+<dl>
+<dt>Return Type:</dt>
+<dd>
+bool
+</dd>
+</dl>
+<dl>
+
+<dt>Raises <b>OSError</b>:</dt>
+<dd>
+raised to indicate an issue with the device
+</dd>
+</dl>
 <a NAME="BaseDevice.fileSystemInfo" ID="BaseDevice.fileSystemInfo"></a>
 <h4>BaseDevice.fileSystemInfo</h4>
 <b>fileSystemInfo</b>(<i></i>)

eric ide

mercurial