drive

Disk drives are a peripheral which allow you to read and write to floppy disks and other "mountable media" (such as computers or turtles). They also allow you to play records.

When a disk drive attaches some mount (such as a floppy disk or computer), it attaches a folder called disk, disk2, etc... to the root directory of the computer. This folder can be used to interact with the files on that disk.

When a disk is inserted, a disk event is fired, with the side peripheral is on. Likewise, when the disk is detached, a disk_eject event is fired.

isDiskPresent()
getDiskLabel()
setDiskLabel([labelA])
hasData()
getMountPath()
hasAudio()
getAudioTitle()
playAudio()
stopAudio()
ejectDisk()
getDiskID()
isDiskPresent()Source

Returns

  1. boolean
getDiskLabel()Source

Returns

  1. any...
setDiskLabel([labelA])Source

Parameters

  1. labelA? string
hasData()Source

Returns

  1. boolean
getMountPath()Source

Returns

  1. string
hasAudio()Source

Returns

  1. boolean
getAudioTitle()Source

Returns

  1. any
playAudio()Source
stopAudio()Source
ejectDisk()Source
getDiskID()Source

Returns

  1. any...