[fix] Fixed listFiles() function.