Difference between revisions of "Disk.getMountPath"
From ComputerCraft Wiki
(Add description and clarify no-floppy-inserted return value) |
m (Linkify nil) |
||
| Line 4: | Line 4: | ||
|args=[[string (type)|string]] side | |args=[[string (type)|string]] side | ||
|api=disk | |api=disk | ||
| − | |returns=[[string (type)|string]] path, or | + | |returns=[[string (type)|string]] path, or [[nil]] if the drive does not contain a floppy |
|desc=Finds the directory name on the local computer where the contents of the [[Floppy Disk]] currently inserted in the drive can be found. | |desc=Finds the directory name on the local computer where the contents of the [[Floppy Disk]] currently inserted in the drive can be found. | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
Revision as of 18:31, 21 April 2013
| 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 |