Adds write_tree_to_path.