Advertisement
Microstar301

CCTERMSERV/SERVER DIRS

Dec 2nd, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local FL = fs.list("")
  2. for _, file in ipairs(FL) do
  3. rednet.send(RAM,file)
  4. end
  5.  
  6.  
  7.  
  8.  
  9. local wt=0
  10. rednet.send(RAM,"PULL")
  11. while wt==0 do
  12.  local wi,it=rednet.receive()
  13.  if wi==RAM then
  14.   if it=="PULLED" then
  15.    print("PULLED")
  16.    return
  17.   end
  18.  end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement