Difference between revisions of "Disk.getMountPath"
From ComputerCraft Wiki
(Add description and clarify no-floppy-inserted return value) |
m (Use type template) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=disk.getMountPath | |name=disk.getMountPath | ||
| − | |args= | + | |args={{Type|string}} side |
|api=disk | |api=disk | ||
| − | |returns= | + | |returns={{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 | ||
Latest revision as of 19:12, 22 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 |