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