make generate_filelist private to files.c