Call all jsons "records,json"

This commit is contained in:
deceivedhornet 2026-06-11 01:52:47 -04:00
parent 7a57d9c2bb
commit 27bd4fc818

View file

@ -79,7 +79,7 @@ def main():
# Use the name of the parent folder as the JSON filename # Use the name of the parent folder as the JSON filename
# e.g., .../items/gearfeet/ becomes .../items/gearfeet/gearfeet.json # e.g., .../items/gearfeet/ becomes .../items/gearfeet/gearfeet.json
folder_name = os.path.basename(root) if rel_path != "." else "root" folder_name = os.path.basename(root) if rel_path != "." else "root"
json_output_path = os.path.join(target_output_dir, f"{folder_name}.json") json_output_path = os.path.join(target_output_dir, f"records.json")
# Save out the consolidated directory map # Save out the consolidated directory map
with open(json_output_path, "w", encoding="utf-8") as json_file: with open(json_output_path, "w", encoding="utf-8") as json_file: