code: def closeCurrentItem(self):
          
          logger.debug("closeCurrentItem")
          currentItem, currentIndex = self.getCurrentItem()
          if not currentIndex.isValid():
              return
  
          # First we remove all the children, this will close them as well.
          self.model().removeAllChildrenAtIndex(currentIndex)
  
          # Close the current item. BaseRti.close will emit the self.model.sigItemChanged signal,
          # which is connected to RepoTreeView.onItemChanged.
          currentItem.close()
          self.dataChanged(currentIndex, currentIndex)
          self.collapse(currentIndex)
docs: Closes the current item in the repository.
              All its children will be unfetched and closed.