HF RL Explorer

Directory Tree to JSON Representation

Directory Tree to JSON Representation: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that traverses a directory structure and generates a JSON representation of it. The JSON output should represent the hierarchical structure of directories and files with specific formatting.

Part of PrimeIntellect/Terminal-Lego-15k.