def on_directory_tree_file_selected(
        self, event: DirectoryTree.FileSelected
    ) -> None:
        """Handle a file being selected in the directory tree.

        Args:
            event: The direct tree selection event.
        """
        event.stop()
        self.post_message(self.Goto(Path(event.path)))
Handle a file being selected in the directory tree.

        Args:
            event: The direct tree selection event.
        
frogmouth/widgets/navigation_panes/local_files.py