Modify getFileList method