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

Disk Drive directories

Started by Pikeman270, 18 July 2016 - 06:30 AM
Pikeman270 #1
Posted 18 July 2016 - 08:30 AM
Hello. So I was wondering… I have a bunch of programs on a floppy disk. They are all in a directory called "test". Could I copy the entire directory to the computer? If so how would I go about doing that?
valithor #2
Posted 18 July 2016 - 08:51 AM
Hello. So I was wondering… I have a bunch of programs on a floppy disk. They are all in a directory called "test". Could I copy the entire directory to the computer? If so how would I go about doing that?

You can use this from shell:
cp /disk/test /test
or you can use this in a program/code
 fs.copy("/disk/test","/test")
Edited on 18 July 2016 - 06:53 AM
Pikeman270 #3
Posted 18 July 2016 - 09:22 AM
Ahh thank you soooo much