disk.getMountPath

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.

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

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

Returns string path
API disk
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.