add genFileList to generate cacheFile data recursively.