Operating system for OpenComputers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
239B

  1. local rpcs = require "rpc"
  2. local ufs = require "unionfs"
  3. local tA = {...}
  4. local path = "/"..table.concat(fs.segments(tA[1]),"/")
  5. local px = ufs.create(path)
  6. for k,v in pairs(px) do
  7. rpcs.register(path.."_"..k,v)
  8. print(path.."_"..k)
  9. end