瀏覽代碼

make unionfs a more ... optional dependency of netutil

master
XeonSquared 4 年之前
父節點
當前提交
e3069f94a3
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      lib/netutil.lua

+ 1
- 2
lib/netutil.lua 查看文件

@@ -1,7 +1,6 @@
local computer = require "computer"
local minitel = require "minitel"
local event = require "event"
local ufs = require "unionfs"
local rpc = require "rpc"
local netutil = {}

@@ -16,7 +15,7 @@ end

function netutil.exportfs(path) -- string -- boolean -- Export the directory *path* over RPC.
local path = "/"..table.concat(fs.segments(path),"/")
local px = ufs.create(path)
local px = require("unionfs").create(path)
for k,v in pairs(px) do
rpc.register(path.."_"..k,v)
print(path.."_"..k)


Loading…
取消
儲存