Difference between revisions of "Disk (API)"
From ComputerCraft Wiki
m (moved DISK to Disk (API)) |
|||
Line 1: | Line 1: | ||
+ | ''If you were looking for disks as-in Floppies, go to [[Floppy Disk]].'' | ||
+ | |||
+ | |||
The Disk API allows you to mess around with disk drives. | The Disk API allows you to mess around with disk drives. | ||
Revision as of 00:52, 26 February 2012
If you were looking for disks as-in Floppies, go to Floppy Disk.
The Disk API allows you to mess around with disk drives.
Method name | Description |
---|---|
disk.isPresent( side ) | Checks the given side for a disk |
disk.hasData( side ) | Checks the disk for data |
disk.getMountPath( side ) | Returns the directory path on which the disk on side has been mount (ex. /disk) |
disk.setLabel( side ) | Sets the label |
disk.getLabel( side ) | Finds label |
disk.hasAudio( side ) | Checks if the disk is a music disk |
disk.playAudio( side ) | Plays the audio |
disk.stopAudio( side ) | Stops the audio |
disk.eject( side ) | Ejects the disk. |