disk.getMountPath

From ComputerCraft Wiki
Jump to: navigation, search


Grid Redstone.png  Function disk.getMountPath
Finds the directory name on the local computer where the contents of the Floppy Disk currently inserted in the drive can be found.
Syntax disk.getMountPath(string side)
Returns string path, or nil if the drive does not contain a floppy
Part of ComputerCraft
API disk

Examples

Grid paper.png  Example
Finds the path of the bottom disk drive
Code
print(disk.getMountPath("bottom"))
Output disk
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox