Difference between revisions of "Disk.getMountPath"

From ComputerCraft Wiki
Jump to: navigation, search
m (Use type template)
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
{{Function
 
{{Function
 
|name=disk.getMountPath
 
|name=disk.getMountPath
|args=[[string (type)|string]] side
+
|args={{Type|string}} side
 
|api=disk
 
|api=disk
|returns=[[string (type)|string]] path
+
|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.
 
|addon=ComputerCraft
 
|addon=ComputerCraft
 
|examples=
 
|examples=
Line 13: Line 14:
 
}}
 
}}
 
}}
 
}}
 +
 +
[[Category:API_Functions]]

Latest revision as of 19:12, 22 April 2013


Grid Redstone.png  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

Grid paper.png  Example
Finds the path of the bottom disk drive
Code
print(disk.getMountPath("bottom"))
Output disk