Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Put this on a turtle
- local diskDrive = peripheral.isPresent("left")
- if diskDrive and fs.exists("disk/turtleStartup") then
- local files = fs.list("disk/")
- for i=1,#files do
- if fs.exists("./"..files[i]) then
- fs.delete("./"..files[i])
- end
- fs.copy("disk/"..files[i],"./"..files[i])
- end
- print("Updated turtle programs from disk.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement