Fs.list

From ComputerCraft Wiki
Revision as of 21:29, 26 February 2012 by Immibis (Talk | contribs) (Created page with "{{Function |name=fs.list |args=string path |api=fs |examples= {{Example |desc=Displays a list of all files and folders in the root directory of a computer |c...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Grid Redstone.png  Function fs.list
No description provided.
Syntax fs.list(string path)
Returns nil
Part of ComputerCraft
API fs

Examples

Grid paper.png  Example
Displays a list of all files and folders in the root directory of a computer
Code
for k,v in ipairs(fs.list("/")) do
 print(v)
end
Output A list of all files and folders in /