424 @rtype bool |
424 @rtype bool |
425 """ |
425 """ |
426 parentPath = os.path.dirname(path) |
426 parentPath = os.path.dirname(path) |
427 if parentPath not in self.watchedDirItems: |
427 if parentPath not in self.watchedDirItems: |
428 # just ignore the situation we don't have a reference to the item |
428 # just ignore the situation we don't have a reference to the item |
429 return |
429 return False |
430 |
430 |
431 for itm in self.watchedDirItems[parentPath]: |
431 for itm in self.watchedDirItems[parentPath]: |
432 for row in range(itm.childCount() - 1, -1, -1): |
432 for row in range(itm.childCount() - 1, -1, -1): |
433 child = itm.child(row) |
433 child = itm.child(row) |
434 if child.name() == path: |
434 if child.name() == path: |