def sync_nodes(self, node, tree):
        "Update attributes on node and refresh GUI."
        # Copy the information on the node.
        node.total_size = tree.total_size
        node.file_size = tree.file_size
        node.path = tree.path
        # Update the Progressbar and GUI.
        self.__progress.step()
Update attributes on node and refresh GUI.
recipes/Python/577633_Directory_Pruner_2/recipe-577633.py