disk.getMountPath

From ComputerCraft
Jump to navigation Jump to search

disk.getMountPath
Function
Syntax
disk.getMountPath(
  • side or network name : string
)

Returns string path
API disk
Source CC:Tweaked (source)

Returns path where the content of a Floppy Disk is mounted in CraftOS. Returns nil, if there is no Floppy Disk in the given disk drive.

ExampleExamplePrint path
Print the mount path of the Floppy Disk in the top drive.
Code
print(disk.getMountPath("top"))
Output disk