diff -r 289c7150ec4b -r f5ffdf0164ab src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html --- a/src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html Mon Mar 24 14:16:32 2025 +0100 +++ b/src/eric7/Documentation/Source/eric7.MicroPython.MicroPythonFileManager.html Wed Mar 26 19:46:41 2025 +0100 @@ -75,6 +75,11 @@ emitted after the file was fetched from the connected device and written to the local file system </dd> +<dt>hashDone(deviceFile, hash)</dt> +<dd> +emitted after the hash has been calculated + for the file on the connected device +</dd> <dt>longListFiles(result)</dt> <dd> emitted with a tuple of tuples containing the @@ -104,6 +109,11 @@ emitted to send a message about what rsync is doing </dd> +<dt>touchFileDone(deviceFile)</dt> +<dd> +emitted after the file has been touched + on the connected device +</dd> </dl> <h3>Derived from</h3> QObject @@ -152,6 +162,10 @@ <td>Public method to read data from the connected device.</td> </tr> <tr> +<td><a href="#MicroPythonFileManager.hashFile">hashFile</a></td> +<td>Public method to generate a hash of a file on the connected device.</td> +</tr> +<tr> <td><a href="#MicroPythonFileManager.lls">lls</a></td> <td>Public slot to get a long listing of the given directory.</td> </tr> @@ -188,6 +202,10 @@ <td>Public slot to synchronize a local directory to the device.</td> </tr> <tr> +<td><a href="#MicroPythonFileManager.touchFile">touchFile</a></td> +<td>Public method to touch a file on the connected device.</td> +</tr> +<tr> <td><a href="#MicroPythonFileManager.writeFile">writeFile</a></td> <td>Public method to write some text to a file on the connected device.</td> </tr> @@ -366,6 +384,29 @@ bytes </dd> </dl> +<a NAME="MicroPythonFileManager.hashFile" ID="MicroPythonFileManager.hashFile"></a> +<h4>MicroPythonFileManager.hashFile</h4> +<b>hashFile</b>(<i>deviceFileName, algorithm="sha256", chunkSize=256</i>) +<p> + Public method to generate a hash of a file on the connected device. +</p> + +<dl> + +<dt><i>deviceFileName</i> (str)</dt> +<dd> +name of the file on the connected device +</dd> +<dt><i>algorithm</i> (str (optional))</dt> +<dd> +hashing algorithm to be used (defaults to "sha256") +</dd> +<dt><i>chunkSize</i> (int (optional))</dt> +<dd> +size of data chunks to be sent to the algorithm + (defaults to 256) +</dd> +</dl> <a NAME="MicroPythonFileManager.lls" ID="MicroPythonFileManager.lls"></a> <h4>MicroPythonFileManager.lls</h4> <b>lls</b>(<i>dirname, showHidden=False</i>) @@ -530,6 +571,20 @@ flag indicating device access via local file system </dd> </dl> +<a NAME="MicroPythonFileManager.touchFile" ID="MicroPythonFileManager.touchFile"></a> +<h4>MicroPythonFileManager.touchFile</h4> +<b>touchFile</b>(<i>deviceFileName</i>) +<p> + Public method to touch a file on the connected device. +</p> + +<dl> + +<dt><i>deviceFileName</i> (str)</dt> +<dd> +name of the file on the connected device +</dd> +</dl> <a NAME="MicroPythonFileManager.writeFile" ID="MicroPythonFileManager.writeFile"></a> <h4>MicroPythonFileManager.writeFile</h4> <b>writeFile</b>(<i>filename, text</i>)