Takes tree text output and generates a directory structure