disk.hasData
From ComputerCraft Wiki
Revision as of 13:43, 30 November 2012 by AfterLifeLochie (Talk | contribs) (Corrected mapping from "Boolean" to "Boolean (type)")
| No description provided. | |
| Syntax | disk.hasData(string side) |
| Returns | boolean whether the disk has data |
| Part of | ComputerCraft |
| API | disk |
Examples
| Checks for data saved on the disk in the bottom drive | |
| Code |
print(disk.hasData("bottom"))
|
| Output | true if the disk has saved data, otherwise false |