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