Exit GetFileName

GetFileList


The GetFileList function returns a table containing the names of files in a folder. The names are included if they match a specified template.

Syntax

nFiles = GetFileList( sFolder, sTemplate, Table )

Remarks

This function creates a table that can be parsed using the Lua pairs function, as shown below. The names do no unpack in any "nice" order, s alphabetical. Also see the CFindFiles class for a more powerful way of loading files from a folder.

Example

Related Topics

CFindFiles , GetFolder, GetFileName