GetFolderContents
From OxeyeWiki
(Difference between revisions)
Thewreck (Talk | contribs)
(Created page with '{{DaisyMethod | daisy.getFolderContents(folderName [, extensionFilter]) | This method returns the contents of a folder as a lua table. | {{MethodParam|folderName|A string|The nam...')
(Created page with '{{DaisyMethod | daisy.getFolderContents(folderName [, extensionFilter]) | This method returns the contents of a folder as a lua table. | {{MethodParam|folderName|A string|The nam...')
Latest revision as of 16:42, 18 January 2010
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")