lovr.filesystem.getDirectoryItems

Returns an unsorted table containing all files and folders in a single directory.

table = lovr.filesystem.getDirectoryItems(path)

Arguments

NameTypeDescription
pathstringThe directory.

Returns

NameTypeDescription
tableitemsA table with a string for each file and subfolder in the directory.

See also