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...")
![]() | |
No description provided. | |
Syntax | fs.list(string path) |
Returns | nil |
Part of | ComputerCraft |
API | fs |
Examples
![]() | |
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 / |