This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
rickydaan's profile picture

[QUESTION] How to open a disk on a advanced way

Started by rickydaan, 25 November 2012 - 08:20 PM
rickydaan #1
Posted 25 November 2012 - 09:20 PM
Hello, my question is, how to open a disk on a advanced way.
I did like:


disk = peripheral.wrap("left")

but how to open it so you can explore it?

Rickydaan
cmurtheepic #2
Posted 25 November 2012 - 10:00 PM
fs.open(directory of the disk, "conditional like w, or write, and r, or read")
there you go
KaoS #3
Posted 25 November 2012 - 11:07 PM
um just use the normal interface, cd disk and use ls to list contents
Laserman34170 #4
Posted 26 November 2012 - 05:27 AM
You don't need to use peripheral.wrap, they already have an API for disks. http://computercraft...itle=Disk_(API)