code: def filter_directories(self):
          
          index = self.get_index('.spyproject')
          if index is not None:
              self.setRowHidden(index.row(), index.parent(), True)
docs: Filter the directories to show