eric6/MicroPython/MicroPythonFileManagerWidget.py

changeset 7836
2f0d208b8137
parent 7780
41420f82c0ac
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
659 dirPath = os.path.join(cwdWidget.text(), dirPath) 659 dirPath = os.path.join(cwdWidget.text(), dirPath)
660 try: 660 try:
661 os.mkdir(dirPath) 661 os.mkdir(dirPath)
662 self.__listLocalFiles(cwdWidget.text(), 662 self.__listLocalFiles(cwdWidget.text(),
663 localDevice=localDevice) 663 localDevice=localDevice)
664 except (OSError, IOError) as exc: 664 except OSError as exc:
665 E5MessageBox.critical( 665 E5MessageBox.critical(
666 self, 666 self,
667 self.tr("Create Directory"), 667 self.tr("Create Directory"),
668 self.tr("""<p>The directory <b>{0}</b> could not be""" 668 self.tr("""<p>The directory <b>{0}</b> could not be"""
669 """ created.</p><p>Reason: {1}</p>""").format( 669 """ created.</p><p>Reason: {1}</p>""").format(
735 if dlg.exec() == QDialog.Accepted: 735 if dlg.exec() == QDialog.Accepted:
736 try: 736 try:
737 os.remove(filename) 737 os.remove(filename)
738 self.__listLocalFiles(cwdWidget.text(), 738 self.__listLocalFiles(cwdWidget.text(),
739 localDevice=localDevice) 739 localDevice=localDevice)
740 except (OSError, IOError) as exc: 740 except OSError as exc:
741 E5MessageBox.critical( 741 E5MessageBox.critical(
742 self, 742 self,
743 self.tr("Delete File"), 743 self.tr("Delete File"),
744 self.tr("""<p>The file <b>{0}</b> could not be""" 744 self.tr("""<p>The file <b>{0}</b> could not be"""
745 """ deleted.</p><p>Reason: {1}</p>""").format( 745 """ deleted.</p><p>Reason: {1}</p>""").format(

eric ide

mercurial