From a0fddd586c0332f89b2026ef64c5231c11769863 Mon Sep 17 00:00:00 2001 From: Bjorn Lammers Date: Sun, 5 Jan 2025 01:07:39 +0100 Subject: [PATCH] fix: move tree.json output to parent folder Signed-off-by: Bjorn Lammers --- scripts/generate_file_tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}'.")