eric6/MicroPython/MicroPythonFileManager.py

branch
micropython
changeset 7137
4ed2573947ff
parent 7131
f75e990caf99
child 7139
9bb36ec2d1b5
equal deleted inserted replaced
7136:bddcb634a9b8 7137:4ed2573947ff
75 super(MicroPythonFileManager, self).__init__(parent) 75 super(MicroPythonFileManager, self).__init__(parent)
76 76
77 self.__commandsInterface = commandsInterface 77 self.__commandsInterface = commandsInterface
78 78
79 @pyqtSlot(str) 79 @pyqtSlot(str)
80 def lls(self, dirname): 80 def lls(self, dirname, showHidden=False):
81 """ 81 """
82 Public slot to get a long listing of the given directory. 82 Public slot to get a long listing of the given directory.
83 83
84 @param dirname name of the directory to list 84 @param dirname name of the directory to list
85 @type str 85 @type str
86 """ 86 @param showHidden flag indicating to show hidden files as well
87 try: 87 @type bool
88 filesList = self.__commandsInterface.lls(dirname) 88 """
89 try:
90 filesList = self.__commandsInterface.lls(
91 dirname, showHidden=showHidden)
89 result = [(decoratedName(name, mode), 92 result = [(decoratedName(name, mode),
90 mode2string(mode), 93 mode2string(mode),
91 str(size), 94 str(size),
92 mtime2string(mtime)) for 95 mtime2string(mtime)) for
93 name, (mode, size, mtime) in filesList] 96 name, (mode, size, mtime) in filesList]

eric ide

mercurial