Make a tree of files and directories by from data defined in an object