396 """ |
396 """ |
397 Public method to handle the deletion of a file or directory. |
397 Public method to handle the deletion of a file or directory. |
398 |
398 |
399 @param path path of the deleted file or directory |
399 @param path path of the deleted file or directory |
400 @type str |
400 @type str |
401 @param isDir flag indicating a deleted directory (defaults to False) |
401 @param isDir flag indicating a deleted directory (defaults to False) (unused) |
402 @type bool (optional) |
402 @type bool (optional) |
403 """ |
403 """ |
404 parentPath = os.path.dirname(path) |
404 parentPath = os.path.dirname(path) |
405 if parentPath not in self.watchedDirItems: |
405 if parentPath not in self.watchedDirItems: |
406 # just ignore the situation we don't have a reference to the item |
406 # just ignore the situation we don't have a reference to the item |
1165 @return lazy population flag |
1165 @return lazy population flag |
1166 @rtype bool |
1166 @rtype bool |
1167 """ |
1167 """ |
1168 return self._lazyPopulation |
1168 return self._lazyPopulation |
1169 |
1169 |
1170 def lessThan(self, other, column, order): # noqa: U100 |
1170 def lessThan(self, other, column, _order): |
1171 """ |
1171 """ |
1172 Public method to check, if the item is less than the other one. |
1172 Public method to check, if the item is less than the other one. |
1173 |
1173 |
1174 @param other reference to item to compare against |
1174 @param other reference to item to compare against |
1175 @type BrowserItem |
1175 @type BrowserItem |
1176 @param column column number to use for the comparison |
1176 @param column column number to use for the comparison |
1177 @type int |
1177 @type int |
1178 @param order sort order (for special sorting) |
1178 @param _order sort order (for special sorting) (unused) |
1179 @type Qt.SortOrder |
1179 @type Qt.SortOrder |
1180 @return true, if this item is less than other |
1180 @return true, if this item is less than other |
1181 @rtype bool |
1181 @rtype bool |
1182 """ |
1182 """ |
1183 try: |
1183 try: |
1260 """ |
1260 """ |
1261 Public method to set the directory name. |
1261 Public method to set the directory name. |
1262 |
1262 |
1263 @param dinfo dinfo is the string for the directory |
1263 @param dinfo dinfo is the string for the directory |
1264 @type str |
1264 @type str |
1265 @param full flag indicating full path name should be displayed |
1265 @param full flag indicating full path name should be displayed (unused) |
1266 @type bool |
1266 @type bool |
1267 """ |
1267 """ |
1268 if FileSystemUtilities.isRemoteFileName(dinfo): |
1268 if FileSystemUtilities.isRemoteFileName(dinfo): |
1269 self._dirName = dinfo |
1269 self._dirName = dinfo |
1270 self.itemData[0] = self.__fsInterface.basename(self._dirName) |
1270 self.itemData[0] = self.__fsInterface.basename(self._dirName) |
1545 """ |
1545 """ |
1546 Public method to set the directory name. |
1546 Public method to set the directory name. |
1547 |
1547 |
1548 @param finfo the string for the file |
1548 @param finfo the string for the file |
1549 @type str |
1549 @type str |
1550 @param full flag indicating full pathname should be displayed |
1550 @param full flag indicating full path name should be displayed (unused) |
1551 @type bool |
1551 @type bool |
1552 """ |
1552 """ |
1553 if FileSystemUtilities.isRemoteFileName(finfo): |
1553 if FileSystemUtilities.isRemoteFileName(finfo): |
1554 dirname, basename = self.__fsInterface.split(finfo) |
1554 dirname, basename = self.__fsInterface.split(finfo) |
1555 self.fileext = self.__fsInterface.splitext(finfo)[1].lower() |
1555 self.fileext = self.__fsInterface.splitext(finfo)[1].lower() |