fs.exists
From ComputerCraft Wiki
Revision as of 19:43, 22 April 2013 by Hawk777 (Talk | contribs) (Copy description from API page, fix return styling, and use type template)
Function fs.exists | |
Checks if a path refers to an existing file or directory. | |
Syntax | fs.exists(string path) |
Returns | boolean true if path is an existing file or directory, or false if not |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Checks that the "rom" directory exists | |
Code |
print(fs.exists("rom")) |
Output | true |