ListDirectories

List all directories in a given directory.

ListDirectories(dir) : { files... }
ListFolders(dir) : { files... }

Example

Lists all files in the scripts directory.

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