ListFiles

List all files in a given directory.

ListFiles(dir) : { files... }

Example

Lists all files in the scripts directory.

local files = ListFiles('scripts')
 
for _, file in ipairs(files) do
print(file)
end