renamed getFileList() to listDir()