GetFolderContents

From OxeyeWiki

Revision as of 16:42, 18 January 2010 by Thewreck (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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