MicroPython Interface eric7

Sat, 29 Jul 2023 16:45:57 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Jul 2023 16:45:57 +0200
branch
eric7
changeset 10137
fe5195fba5f7
parent 10136
ae09a4a9b0d1
child 10138
56614cf9d03c
child 10139
264adc8cddb1

MicroPython Interface
- Fixed an issue causing syncing a filesystem to fail, if the device was lacking a directory.

src/eric7/MicroPython/MicroPythonFileManager.py file | annotate | diff | comparison | revisions
--- a/src/eric7/MicroPython/MicroPythonFileManager.py	Sat Jul 29 10:57:22 2023 +0200
+++ b/src/eric7/MicroPython/MicroPythonFileManager.py	Sat Jul 29 16:45:57 2023 +0200
@@ -322,6 +322,8 @@
                     destinationDict[name] = nstat
         else:
             try:
+                if not self.__device.exists(deviceDirectory):
+                    self.__device.mkdir(deviceDirectory)
                 destinationFiles = self.__device.lls(deviceDirectory, fullstat=True)
             except Exception as exc:
                 return [str(exc)]

eric ide

mercurial