391 """ |
391 """ |
392 Public method to handle the deletion of a file or directory. |
392 Public method to handle the deletion of a file or directory. |
393 |
393 |
394 @param path path of the deleted file or directory |
394 @param path path of the deleted file or directory |
395 @type str |
395 @type str |
396 @param isDir flag indicating a deleted directory (defaults to False) |
396 @param isDir flag indicating a deleted directory (defaults to False) (unused) |
397 @type bool (optional) |
397 @type bool (optional) |
398 """ |
398 """ |
399 parentPath = os.path.dirname(path) |
399 parentPath = os.path.dirname(path) |
400 if parentPath not in self.watchedDirItems: |
400 if parentPath not in self.watchedDirItems: |
401 # just ignore the situation we don't have a reference to the item |
401 # just ignore the situation we don't have a reference to the item |
1108 @return lazy population flag |
1108 @return lazy population flag |
1109 @rtype bool |
1109 @rtype bool |
1110 """ |
1110 """ |
1111 return self._lazyPopulation |
1111 return self._lazyPopulation |
1112 |
1112 |
1113 def lessThan(self, other, column, order): # noqa: U100 |
1113 def lessThan(self, other, column, _order): |
1114 """ |
1114 """ |
1115 Public method to check, if the item is less than the other one. |
1115 Public method to check, if the item is less than the other one. |
1116 |
1116 |
1117 @param other reference to item to compare against |
1117 @param other reference to item to compare against |
1118 @type BrowserItem |
1118 @type BrowserItem |
1119 @param column column number to use for the comparison |
1119 @param column column number to use for the comparison |
1120 @type int |
1120 @type int |
1121 @param order sort order (for special sorting) |
1121 @param _order sort order (for special sorting) (unused) |
1122 @type Qt.SortOrder |
1122 @type Qt.SortOrder |
1123 @return true, if this item is less than other |
1123 @return true, if this item is less than other |
1124 @rtype bool |
1124 @rtype bool |
1125 """ |
1125 """ |
1126 try: |
1126 try: |
1190 """ |
1190 """ |
1191 Public method to set the directory name. |
1191 Public method to set the directory name. |
1192 |
1192 |
1193 @param dinfo dinfo is the string for the directory |
1193 @param dinfo dinfo is the string for the directory |
1194 @type str |
1194 @type str |
1195 @param full flag indicating full path name should be displayed |
1195 @param full flag indicating full path name should be displayed (unused) |
1196 @type bool |
1196 @type bool |
1197 """ |
1197 """ |
1198 self._dirName = os.path.abspath(dinfo) |
1198 self._dirName = os.path.abspath(dinfo) |
1199 self.itemData[0] = os.path.basename(self._dirName) |
1199 self.itemData[0] = os.path.basename(self._dirName) |
1200 |
1200 |
1439 """ |
1439 """ |
1440 Public method to set the directory name. |
1440 Public method to set the directory name. |
1441 |
1441 |
1442 @param finfo the string for the file |
1442 @param finfo the string for the file |
1443 @type str |
1443 @type str |
1444 @param full flag indicating full pathname should be displayed |
1444 @param full flag indicating full path name should be displayed (unused) |
1445 @type bool |
1445 @type bool |
1446 """ |
1446 """ |
1447 self._filename = os.path.abspath(finfo) |
1447 self._filename = os.path.abspath(finfo) |
1448 self.itemData[0] = os.path.basename(finfo) |
1448 self.itemData[0] = os.path.basename(finfo) |
1449 self.fileext = os.path.splitext(finfo)[1].lower() |
1449 self.fileext = os.path.splitext(finfo)[1].lower() |