Sat, 29 Jul 2023 16:45:57 +0200
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)]