build filetree