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 |