fs.exists
From ComputerCraft Wiki
| Checks if a path refers to an existing file or directory. | |
| Syntax | fs.exists(string path) |
| Returns | boolean does the file or folder exist? |
| Part of | ComputerCraft |
| API | fs |
Examples
| Checks that the "rom" directory exists. | |
| Code |
print(fs.exists("rom"))
|
| Output | true |