disk.getMountPath
From ComputerCraft Wiki
Revision as of 18:30, 21 April 2013 by Hawk777 (Talk | contribs) (Add description and clarify no-floppy-inserted return value)
| 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 |