diff --git a/scripts/generate_file_tree.py b/scripts/generate_file_tree.py index b238251e..e23ae5ae 100644 --- a/scripts/generate_file_tree.py +++ b/scripts/generate_file_tree.py @@ -27,11 +27,11 @@ if __name__ == "__main__": # Generate the combined folder tree folder_tree = generate_folder_tree(folder_paths) - # Write the JSON structure to 'tree.json' in the root folder + # Write the JSON structure to 'tree.json' in the parent folder root_dir = Path(__file__).resolve().parent - tree_json_path = root_dir / 'tree.json' + tree_json_path = root_dir.parent / 'tree.json' with open(tree_json_path, 'w') as f: json.dump(folder_tree, f, indent=4, sort_keys=True) # Sort the keys in the JSON output - print(f"Folder tree successfully written to '{tree_json_path}'.") \ No newline at end of file + print(f"Folder tree successfully written to '{tree_json_path}'.")