249 <tr> |
249 <tr> |
250 <td><a href="#BaseDevice.ensurePath">ensurePath</a></td> |
250 <td><a href="#BaseDevice.ensurePath">ensurePath</a></td> |
251 <td>Public method to ensure, that the given target path exists.</td> |
251 <td>Public method to ensure, that the given target path exists.</td> |
252 </tr> |
252 </tr> |
253 <tr> |
253 <tr> |
|
254 <td><a href="#BaseDevice.executeCommands">executeCommands</a></td> |
|
255 <td>Public method to send commands to the connected device and return the result.</td> |
|
256 </tr> |
|
257 <tr> |
254 <td><a href="#BaseDevice.exists">exists</a></td> |
258 <td><a href="#BaseDevice.exists">exists</a></td> |
255 <td>Public method to check the existence of a file or directory.</td> |
259 <td>Public method to check the existence of a file or directory.</td> |
256 </tr> |
260 </tr> |
257 <tr> |
261 <tr> |
258 <td><a href="#BaseDevice.fileSystemInfo">fileSystemInfo</a></td> |
262 <td><a href="#BaseDevice.fileSystemInfo">fileSystemInfo</a></td> |
1066 <dl> |
1070 <dl> |
1067 |
1071 |
1068 <dt><i>target</i> (str)</dt> |
1072 <dt><i>target</i> (str)</dt> |
1069 <dd> |
1073 <dd> |
1070 target directory |
1074 target directory |
|
1075 </dd> |
|
1076 </dl> |
|
1077 <a NAME="BaseDevice.executeCommands" ID="BaseDevice.executeCommands"></a> |
|
1078 <h4>BaseDevice.executeCommands</h4> |
|
1079 <b>executeCommands</b>(<i>commands, *, mode="raw", timeout=0</i>) |
|
1080 |
|
1081 <p> |
|
1082 Public method to send commands to the connected device and return the |
|
1083 result. |
|
1084 </p> |
|
1085 <p> |
|
1086 If no connected interface is available, empty results will be returned. |
|
1087 </p> |
|
1088 <dl> |
|
1089 |
|
1090 <dt><i>commands</i> (str or list of str)</dt> |
|
1091 <dd> |
|
1092 list of commands to be executed |
|
1093 </dd> |
|
1094 <dt><i>mode=</i> (str)</dt> |
|
1095 <dd> |
|
1096 submit mode to be used (one of 'raw' or 'paste') (defaults to |
|
1097 'raw') |
|
1098 </dd> |
|
1099 <dt><i>timeout=</i> (int (optional))</dt> |
|
1100 <dd> |
|
1101 per command timeout in milliseconds (0 for configured default) |
|
1102 (defaults to 0) |
|
1103 </dd> |
|
1104 </dl> |
|
1105 <dl> |
|
1106 <dt>Return:</dt> |
|
1107 <dd> |
|
1108 tuple containing stdout and stderr output of the device |
|
1109 </dd> |
|
1110 </dl> |
|
1111 <dl> |
|
1112 <dt>Return Type:</dt> |
|
1113 <dd> |
|
1114 tuple of (bytes, bytes) |
1071 </dd> |
1115 </dd> |
1072 </dl> |
1116 </dl> |
1073 <a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a> |
1117 <a NAME="BaseDevice.exists" ID="BaseDevice.exists"></a> |
1074 <h4>BaseDevice.exists</h4> |
1118 <h4>BaseDevice.exists</h4> |
1075 <b>exists</b>(<i>pathname</i>) |
1119 <b>exists</b>(<i>pathname</i>) |