Renamed and fixed listFiles().