lovr.filesystem.getDirectoryItems
EditReturns a sorted table containing all files and folders in a single directory.
items = lovr.filesystem.getDirectoryItems(path)
Arguments
Name | Type | Description |
path | string | The directory. |
Returns
Name | Type | Description |
items | table | A table with a string for each file and subfolder in the directory. |
Notes
This function calls table.sort
to sort the results, so if table.sort
is not available in the global scope the results are not guaranteed to be sorted.