disk.getMountPath
Returns path where the content of a Floppy Disk is mounted in CraftOS. Returns nil, if there is no Floppy Disk in the given disk drive.
|
|||
| Print the mount path of the Floppy Disk in the top drive. | |||
| Code | print(disk.getMountPath("top"))
|
||
| Output | disk | ||
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| disk.getMountPath Function | |
|---|---|
|
Syntax disk.getMountPath(
| |
| Returns | string path |
| API | disk |
| Source | CC:Tweaked (source) |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.