Difference between revisions of "Disk.getMountPath"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Add description and clarify no-floppy-inserted return value) |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] side | |args=[[string (type)|string]] side | ||
|api=disk | |api=disk | ||
− | |returns=[[string (type)|string]] path | + | |returns=[[string (type)|string]] path, or <code>nil</code> 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. | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 18:30, 21 April 2013
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
Example | |
Finds the path of the bottom disk drive | |
Code |
print(disk.getMountPath("bottom")) |
Output | disk |