src/eric7/MicroPython/MicroPythonFileManager.py

branch
eric7
changeset 10137
fe5195fba5f7
parent 10019
e56089d00750
child 10373
093dcebe5ecb
equal deleted inserted replaced
10136:ae09a4a9b0d1 10137:fe5195fba5f7
320 destinationFiles = listdirStat(deviceDirectory) 320 destinationFiles = listdirStat(deviceDirectory)
321 for name, nstat in destinationFiles: 321 for name, nstat in destinationFiles:
322 destinationDict[name] = nstat 322 destinationDict[name] = nstat
323 else: 323 else:
324 try: 324 try:
325 if not self.__device.exists(deviceDirectory):
326 self.__device.mkdir(deviceDirectory)
325 destinationFiles = self.__device.lls(deviceDirectory, fullstat=True) 327 destinationFiles = self.__device.lls(deviceDirectory, fullstat=True)
326 except Exception as exc: 328 except Exception as exc:
327 return [str(exc)] 329 return [str(exc)]
328 if destinationFiles is None: 330 if destinationFiles is None:
329 # the destination directory does not exist 331 # the destination directory does not exist

eric ide

mercurial