def jump_to_path(self, path):
        """Select path and ensure it appears on panel."""
        ### deselect all paths

        self.selection_states[:] = [False] * len(self.selection_states)

        ### perform tasks to make the path selected

        index = self.selectable_paths.index(path)
        self.selection_states[index] = True

        self.last_selected_index = index

        ### perform scrolling if needed in order for the
        ### path of the last selected index to appear on
        ### the screen (the path we just made selected),
        ### storing the return value of the operation
        ### (a boolean indicating whether the scrolling
        ### was performed or not)
        needed_scrolling = self.needed_scrolling()

        ### if we needed to scroll, update the path in each
        ### path object
        if needed_scrolling:
            self.update_path_objects_paths()

        ### update outline rect attribute
        self.update_outline_rect()

        ### update appearance of all paths
        self.update_path_objs_appearance()

        ### since the selection may have changed, make it
        ### so the file manager updates its path selection
        self.fm.update_entry_with_selected()
Select path and ensure it appears on panel.
nodezator/fileman/dirpanel/extraop.py