I have a file structure like this: I would like to, using Javascript and Node.js, listen to this root directory and all sub directories and create a JSON which mirrors this directory structure, each node contains type, name, path, and children: Here’s a coffeescript JSON: how to get this json data format in django views?(python) Answer Here’s a sketch. Error