Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- arguments to this program
- args={...}
- -- the list of files to download
- -- just comment out unwanted files
- local files={
- Zxq2nufC="turtle2",
- RCZZdjY6="mine1",
- --example="crap",
- Ciy9Kr0S="mine2",
- t25VtYDj="test",
- CD9xJQfw="m",
- CBaVH9S3="mine3",
- HeUAUZ9r="test2",
- aQ1JNKKT="stairs",
- WhRQ9tYj="mineVein",
- ["1RggZRdC"]="position",--have to do like this if code starts with number
- U1yQYHR4="veinMiner",
- Dg5hkDtJ="mineMaterials",
- 0DmRkc4J="mine1v2",
- }
- -- the folder to download the files to
- local folder="/theinsekt"
- -- delete folder if first argument is "rm"
- if #args==1 then
- if args[1]=="rm" then
- fs.delete(folder)
- end --if
- end --if
- -- make the folder
- fs.makeDir(folder)
- -- download files
- for code, filename in pairs(files) do
- shell.run("pastebin","get", code, folder.."/"..filename)
- end --for
Add Comment
Please, Sign In to add comment