added code to get file list.