Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.filesystem.enumerate( filename )
This functions returns a list of existing files in some directory. See examples.
Usage
love.filesystem.enumerate( filename )
Arguments
filenameThe name of the directory.
Returns
tableA list of files and directories in the directory.
Examples
Example 1: Directory contents. function load()
   -- Get the files.
   filelist = love.filesystem.enumerate("folder")

   -- Display them one by one.
   for i=1,#filelist do
      print(filelist[i])
   end
end