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

branch
eric7
changeset 9853
080e060a0383
parent 9847
d8c7ded575cb
child 9860
d34667faa686
equal deleted inserted replaced
9852:b7aef103355a 9853:080e060a0383
46 on the file system of a connected MicroPython device, for getting and setting 46 on the file system of a connected MicroPython device, for getting and setting
47 the time on the board and getting board related data. Supported file system 47 the time on the board and getting board related data. Supported file system
48 commands are: 48 commands are:
49 <ul> 49 <ul>
50 <li>cd: change directory</li> 50 <li>cd: change directory</li>
51 <li>fileSystemInfo: get information about the file system 51 <li>exists: test the existence of a file or directory on the device</li>
52 <li>fileSystemInfo: get information about the file system</li>
52 <li>get: get a file from the connected device</li> 53 <li>get: get a file from the connected device</li>
53 <li>getData: read data of a file of the connected device</li> 54 <li>getData: read data of a file of the connected device</li>
54 <li>lls: directory listing with meta data</li> 55 <li>lls: directory listing with meta data</li>
55 <li>ls: directory listing</li> 56 <li>ls: directory listing</li>
56 <li>mkdir: create a new directory</li> 57 <li>mkdir: create a new directory</li>
57 <li>put: copy a file to the connected device</li> 58 <li>put: copy a file to the connected device</li>
58 <li>putData: write data to a file of the connected device</li> 59 <li>putData: write data to a file of the connected device</li>
59 <li>pwd: get the current directory</li> 60 <li>pwd: get the current directory</li>
60 <li>rm: remove a file from the connected device</li> 61 <li>rm: remove a file from the connected device</li>
61 <li>rmdir: remove an empty directory</li> 62 <li>rmdir: remove an empty directory</li>
62 <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash) 63 <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash)</li>
63 </ul> 64 </ul>
64 </p> 65 </p>
65 <p> 66 <p>
66 Supported non file system commands are: 67 Supported non file system commands are:
67 <ul> 68 <ul>
179 <tr> 180 <tr>
180 <td><a href="#BaseDevice.downloadFirmware">downloadFirmware</a></td> 181 <td><a href="#BaseDevice.downloadFirmware">downloadFirmware</a></td>
181 <td>Public method to download the device firmware.</td> 182 <td>Public method to download the device firmware.</td>
182 </tr> 183 </tr>
183 <tr> 184 <tr>
185 <td><a href="#BaseDevice.exists">exists</a></td>
186 <td>Public method to check the existence of a file or directory.</td>
187 </tr>
188 <tr>
184 <td><a href="#BaseDevice.fileSystemInfo">fileSystemInfo</a></td> 189 <td><a href="#BaseDevice.fileSystemInfo">fileSystemInfo</a></td>
185 <td>Public method to obtain information about the currently mounted file systems.</td> 190 <td>Public method to obtain information about the currently mounted file systems.</td>
186 </tr> 191 </tr>
187 <tr> 192 <tr>
188 <td><a href="#BaseDevice.forceInterrupt">forceInterrupt</a></td> 193 <td><a href="#BaseDevice.forceInterrupt">forceInterrupt</a></td>
764 <b>downloadFirmware</b>(<i></i>) 769 <b>downloadFirmware</b>(<i></i>)
765 770
766 <p> 771 <p>
767 Public method to download the device firmware. 772 Public method to download the device firmware.
768 </p> 773 </p>
774 <a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a>
775 <h4>BaseDevice.exists</h4>
776 <b>exists</b>(<i>pathname</i>)
777
778 <p>
779 Public method to check the existence of a file or directory.
780 </p>
781 <dl>
782
783 <dt><i>pathname</i> (str)</dt>
784 <dd>
785 name of the path to check
786 </dd>
787 </dl>
788 <dl>
789 <dt>Return:</dt>
790 <dd>
791 flag indicating the existence
792 </dd>
793 </dl>
794 <dl>
795 <dt>Return Type:</dt>
796 <dd>
797 bool
798 </dd>
799 </dl>
800 <dl>
801
802 <dt>Raises <b>OSError</b>:</dt>
803 <dd>
804 raised to indicate an issue with the device
805 </dd>
806 </dl>
769 <a NAME="BaseDevice.fileSystemInfo" ID="BaseDevice.fileSystemInfo"></a> 807 <a NAME="BaseDevice.fileSystemInfo" ID="BaseDevice.fileSystemInfo"></a>
770 <h4>BaseDevice.fileSystemInfo</h4> 808 <h4>BaseDevice.fileSystemInfo</h4>
771 <b>fileSystemInfo</b>(<i></i>) 809 <b>fileSystemInfo</b>(<i></i>)
772 810
773 <p> 811 <p>

eric ide

mercurial