Isolate the Tree Folder Creation in a new function easier and quicker to test