GetFolderContents

From OxeyeWiki

Jump to: navigation, search

daisy.getFolderContents(folderName [, extensionFilter])

This method returns the contents of a folder as a lua table.

Parameter Expected Type Description
folderName A string The name of the folder to look in. Relative to the execution directory. The name is case sensitive on Mac OS X.
extensionFilter A string Specified to filter for a certain file extension type.
Returns

Returns a number indexed table containing the folder and file-names as strings.

Daisymoon Video Lib

Example

   local sourceFiles = daisy.getFolderContents("daisyMoon")

   local saveGames = daisy.getFolderContents("saves", "*.saveGame")
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox