Call all jsons "records,json"
This commit is contained in:
parent
7a57d9c2bb
commit
27bd4fc818
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue