Advertisement
HarvDad

rmall

May 13th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. -- rmall: Delete all files listed here
  2. -- Version 0.1
  3.  
  4. files = {
  5. "allfiles",
  6. "b",
  7. "branch",
  8. "build",
  9. "bwb",
  10. "cactus",
  11. "chute",
  12. "clear",
  13. "collect",
  14. "copyall",
  15. "d",
  16. "dump",
  17. "eatlava",
  18. "f",
  19. "fabdrain",
  20. "floor",
  21. "l",
  22. "logger",
  23. "ores",
  24. "quarry",
  25. "r",
  26. "room",
  27. "shaft",
  28. "sifter",
  29. "sprinkle",
  30. "suck",
  31. "tree",
  32. "trees",
  33. "tube",
  34. "u",
  35. "wall",
  36. "walls",
  37. "wt"
  38. }
  39.  
  40. count = 0
  41.  
  42. for i=1,#files do
  43. if (shell.run("rm " .. files[i])) ~= nil then
  44. count = count + 1
  45. end
  46. end
  47.  
  48. print("Files deleted: ", count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement