dirlist.c for list all files under directory(optional, recursive).