mktree
if (mktree(dname, level+1) != 0) {
static int mktree(char *pbasedir, int level);
ret = mktree(pbasedir, 1);