Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement