1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 18:48:06 +11:00
OC-Minitel/MTFS/OpenOS/usr/bin/exportfs.lua

18 lines
323 B
Lua
Raw Normal View History

2020-10-12 18:09:06 +11:00
local fsproxy = require "fsproxy"
local rpc = require "rpc"
local fs = require "filesystem"
local tA = {...}
if #tA < 1 then
print("Usage: exportfs <directory> [directory] ...")
return
end
for k,v in pairs(tA) do
local px = fsproxy.new(v)
for l,m in pairs(px) do
rpc.register("fs_"..v.."_"..l,m)
end
print(v)
end