changed test.c to files.c and added dirs.c