Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- files = fs.list("/disk")
- for k,v in pairs(files) do
- if v=="startup" then
- else
- print(v)
- if fs.exists(v) then
- fs.delete(v)
- fs.copy("/disk/"..v,"/"..v)
- else
- fs.copy("/disk/"..v,"/"..v)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment