build the file name tree