Folder to JSON
Phase 1 - Basic folder structure to JSON
Create a script that reads a folder and generates a JSON representation of its directory tree.
- Input folder path
- Traverse subfolders and files
- Generate nested JSON structure
Functional result: Script outputs JSON accurately representing folder hierarchy.
Phase 2 - Enhanced folder metadata export
Extend the script to include file metadata (size, creation/modification date) and optionally save the JSON to a file.
- Collect file size and timestamps
- Include metadata in JSON
- Save JSON to specified file
Functional result: Script produces detailed JSON with metadata and writes it to disk.