Fs.list
From ComputerCraft Wiki
Function fs.list | |
No description provided. | |
Syntax | fs.list(string path) |
Returns | table list of files and folders in that path |
Part of | ComputerCraft |
API | fs |
Examples
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 / |