1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-22 03:54:20 -05:00

make unionfs a more ... optional dependency of netutil

This commit is contained in:
XeonSquared 2020-06-11 16:18:32 +10:00
parent f9749ac181
commit e3069f94a3

View File

@ -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)