Difference between revisions of "Fs.exists"
From ComputerCraft Wiki
(Create page) |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:46, 28 November 2012
| Checks whether a file or directory exists | |
| 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
| Checks that the "rom" directory exists | |
| Code |
print(fs.exists("rom"))
|
| Output | true |