Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- rmall: Delete all files listed here
- -- Version 0.1
- files = {
- "allfiles",
- "b",
- "branch",
- "build",
- "bwb",
- "cactus",
- "chute",
- "clear",
- "collect",
- "copyall",
- "d",
- "dump",
- "eatlava",
- "f",
- "fabdrain",
- "floor",
- "l",
- "logger",
- "ores",
- "quarry",
- "r",
- "room",
- "shaft",
- "sifter",
- "sprinkle",
- "suck",
- "tree",
- "trees",
- "tube",
- "u",
- "wall",
- "walls",
- "wt"
- }
- count = 0
- for i=1,#files do
- if (shell.run("rm " .. files[i])) ~= nil then
- count = count + 1
- end
- end
- print("Files deleted: ", count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement