def METHOD_NAME(self, item: FileSystemItem):
    """
    Handle double-clicks on items in the list. When the item is a directory, the current path changes and the
    contents of the directory are listed. Files are ignored.
    :param item: the item that was clicked.
    """
    if not item.isDirectory() and not item.isDrive():
        return
    if item.text() == "..":
        self.currentPath = self.currentPath.parent
    else:
        self.currentPath = self.currentPath / item.text()
    self.listCurrentDirectory()