fs.exists
From ComputerCraft Wiki
Revision as of 16:25, 10 April 2014 by MKlegoman357 (Talk | contribs)
Function fs.exists | |
Checks if a path refers to an existing file or directory. | |
Syntax | fs.exists(string path) |
Returns | boolean does the file or folder exists? |
Part of | ComputerCraft |
API | fs |
Examples
Example | |
Checks that the "rom" directory exists. | |
Code |
print(fs.exists("rom")) |
Output | true |