Simple solution to mkdir a tree

1 · Mu Lei · Feb. 28, 2015, 5:18 p.m.
The problem Yesterday night I've written command line interface (CLI) for GNU Artanis, after took care of my daughter to sleep, I had only one hour to hack something. My aim is to add `art create proj-name' command to create a bunch of files/directories for initializing a new Artanis web app. Just like Rails does. Well, since my Turing brain has limited time for this hack, I have to choose my favorite way to traverse the tree for this job, the recursive way. ;-) Depth first traversal One of the ...