def METHOD_NAME(self):
    """
    Refresh the list widget with the current directory's contents.
    """
    node = self.root
    for part in self.currentPath.parts[1 :]:
        node = next(d for d in node.directories if d.name == part)
    self.listWidget.clear()
    self.breadcrumbLabel.setText(f"Location: {str(self.currentPath)}")
    if node != self.root:
        self.listWidget.addItem(FileSystemItem("..", FileSystemItemType.Directory))
    for directory in node.directories:
        self.listWidget.addItem(FileSystemItem(directory.name, directory.type))
    for file in node.files:
        self.listWidget.addItem(FileSystemItem(file.name, file.type))
    if node is not self.currentDirectory:
        self.currentDirectory.removeObserver(self)
        node.addObserver(self)
        self.currentDirectory = node
        node.list()