add the function of parsing file tree and using this api
modify file tree api