From e3069f94a353d33857d77dc1799ebd4035809198 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Thu, 11 Jun 2020 16:18:32 +1000 Subject: [PATCH] make unionfs a more ... optional dependency of netutil --- lib/netutil.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/netutil.lua b/lib/netutil.lua index 373c9c3..fbf5d9b 100644 --- a/lib/netutil.lua +++ b/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)