Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --this script is used to properly setup folders with the resources for each application
- local tArg = {...}--Folder Name, Items
- local files = {}
- local Names = {}
- local FilePath = tArg[1]
- fs.makeDir(FilePath)
- local fileItems = {http.get("http://pastebin.com/raw.php?i=" .. textutils.urlEncode(tArg[2]))}
- for i = 2, #FileItems do
- files[i] = tArg[i]:sub(1,8)
- Names[i] = tArg[i]:sub(9,string.len(tArg[i])
- end
- for i = 1, #files do
- shell.run("pastebin","get",files[i],FilePath..Names[i])
- end
Add Comment
Please, Sign In to add comment