Today I had to write a small piece of code to generate a local file system based on the structure of a given Tridion folder. It’s a throwaway bit of code but I thought it might be useful to someone out there at some point in their lives (or myself in the future), so i figured why not share it here?
Note: The code comes ‘as-is’, I had time to either share it or tidy it up, not do both
So here’s what it does:
- You give it a tridion folder ID
- You also give it a file path
- It recurses through Tridion and creates the folder structure in tridion on your local machine
- Any components are also created, you need to write your own logic if you want something special in these files