disk.getID
From ComputerCraft Wiki
Revision as of 18:46, 22 April 2013 by Hawk777 (Talk | contribs) (Fix name, clarify return value, and add description)
Returns a number which uniquely identifies the disk in the drive and which is the name of the directory in the world’s computer/disk directory containing the disk’s data. | |
| Syntax | disk.getID(string side) |
| Returns | int the disk ID, or nil if the drive does not contain a Floppy Disk |
| Part of | ComputerCraft |
| API | disk |
Examples
| Prints the ID of the disk. | |
| Code |
print(disk.getID("bottom"))
|
| Output | The ID of the disk (side varies). |