recursive mkdir when POST /templates