Got the code functional for my purposes. Can now create new projects in specified folders.