Serialize a tree of files and directories into object form
Make a tree of files and directories from data defined in an object
recursively read contents of all files in a directory
支持将树状结构输出为字符串目录,支持读取本地目录输出为树状结构