disk.getMountPath
From ComputerCraft Wiki
| 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
| Finds the path of the bottom disk drive | |
| Code |
print(disk.getMountPath("bottom"))
|
| Output | disk |