Marlingaming

CC Tweaked Application Folder Maker

Jan 13th, 2022 (edited)
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. --this script is used to properly setup folders with the resources for each application
  2. local tArg = {...}--Folder Name, Items
  3. local files = {}
  4. local Names = {}
  5. local FilePath = tArg[1]
  6. fs.makeDir(FilePath)
  7. local fileItems = {http.get("http://pastebin.com/raw.php?i=" .. textutils.urlEncode(tArg[2]))}
  8. for i = 2, #FileItems do
  9.     files[i] = tArg[i]:sub(1,8)
  10.     Names[i] = tArg[i]:sub(9,string.len(tArg[i])
  11. end
  12.  
  13.  
  14. for i = 1, #files do
  15.     shell.run("pastebin","get",files[i],FilePath..Names[i])
  16. end
  17.  
Add Comment
Please, Sign In to add comment