HolyLib Wiki

Find

  table, table filesystem.Find( string fileName, string gamePath, string sorting = nameasc )

Description

Finds and returns a table containing all files and folders in the given path.

Arguments

1string fileName
file to check existance
2string gamePath
game path to use
3string sorting = nameasc
the sorting to use. Valid are nameasc, namedesc, dateasc, datedesc

Returns

1table files
A table containing all found files
2table files
A table containing all found folders