Creating a project structure map from the command line

I wonder if anyone has developed a tool that can analyse an existing project structure (folders and filenames) and then create a script that can be cut and pasted into the terminal in oTToDev to quickly create the project structure to then allow cut and paste of code into this to create a “knife and fork” solution to not yet being able to import projects?