Disk (API)
From ComputerCraft Wiki
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 ) | <no description given> |
| 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. |