Difference between revisions of "Fs.list"
From ComputerCraft Wiki
m (Both pairs and ipairs will iterate hidden files.) |
(Clarify description of return value) |
||
Line 5: | Line 5: | ||
|api=fs | |api=fs | ||
|returns=[[table (type)|table]] list of files and folders in <var>path</var>, which must be a directory | |returns=[[table (type)|table]] list of files and folders in <var>path</var>, which must be a directory | ||
− | |desc=Returns a list of all the files contained in a directory, | + | |desc=Returns a list of all the files (including subdirectories) contained in a directory, as a numerically indexed table. |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 18:54, 21 April 2013
Function fs.list | |
Returns a list of all the files (including subdirectories) contained in a directory, as a numerically indexed table. | |
Syntax | fs.list(string path) |
Returns | table list of files and folders in path, which must be a directory |
Part of | ComputerCraft |
API | fs |