Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _, file in pairs(fs.list("")) do
- if not fs.isDir(file) then
- print("Deleting: " .. file)
- fs.delete(file)
- end
- end
- for _, match in pairs(fs.complete("", "disk")) do
- if not fs.isDir("disk/" .. match) and not fs.exists(match) then
- if match ~= "startup.lua" then
- print("Copying: " .. match)
- fs.copy("disk/" .. match, match)
- end
- end
- end
Add Comment
Please, Sign In to add comment