Guest User

Untitled

a guest
Apr 4th, 2020
252
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- startup.lua
  2. -- 実装未完了。この実装だと,同期的に実行するので,時間かかるプログラムが・・・
  3.  
  4. if not fs.exists("working") then
  5.     return
  6. end
  7.  
  8. local files = fs.list("working")
  9. for _, file in ipairs(files) do
  10.     local fh = fs.open(fs.combine("working", file), "r")
  11.     local temp = fh.readLine()
  12.     fh.close()
  13.     shell.run(temp)
  14. end
RAW Paste Data