If you want to make the tree command available on mac OS X, run brew install tree
.
Simply, change BASE_DIR
and OUTPUT_JSON_FILENAME
.
Run convert-file-tree-json.py
.
You can use the tree command which lists a directory structure recursively.
e.g)