127 self.symlink = True |
127 self.symlink = True |
128 self.icon = EricPixmapCache.getSymlinkIcon("dirClosed") |
128 self.icon = EricPixmapCache.getSymlinkIcon("dirClosed") |
129 else: |
129 else: |
130 self.icon = EricPixmapCache.getIcon("dirClosed") |
130 self.icon = EricPixmapCache.getIcon("dirClosed") |
131 |
131 |
132 def setName(self, dinfo, full=True): |
132 def setName(self, dinfo, full=True): # noqa: U100 |
133 """ |
133 """ |
134 Public method to set the directory name. |
134 Public method to set the directory name. |
135 |
135 |
136 @param dinfo dinfo is the string for the directory (string) |
136 @param dinfo dinfo is the string for the directory (string) |
137 @param full flag indicating full pathname should be displayed (boolean) |
137 @param full flag indicating full path name should be displayed (boolean) |
138 """ |
138 """ |
139 self._dirName = os.path.abspath(dinfo) |
139 self._dirName = os.path.abspath(dinfo) |
140 self.itemData[0] = os.path.basename(self._dirName) |
140 self.itemData[0] = os.path.basename(self._dirName) |
141 |
141 |
142 def dirName(self): |
142 def dirName(self): |