Disk (API)
From ComputerCraft Wiki
The Disk API allows you to mess around with disk drives.
Its functions include:
- disk.isPresent( side ) which checks for a disk
- disk.hasData( side) which checks if the disk is not blank
- disk.getMountPath( side )
- disk.setLabel( side ) which sets the label
- disk.getLabel( side ) which gets the label
- disk.hasAudio( side ) which checks if it is a music disk
- disk.playAudio( side ) which plays the audio
- disk.stopAudio( side ) which stops the audio
- disk.eject( side ) which ejects the disk.