OC-Tsuki/ksrc/fs/foxfs/ads.lua

21 lines
476 B
Lua
Raw Normal View History

2020-06-02 16:23:58 +10:00
function prox:getadses(path)
local inode = fox_getnode(self, path)
local adsl = fox_readdir(self, inode.ads)
return adsl
end
function prox:makeads(path, stream)
end
function prox:getads(path, stream)
local inode = fox_getnode(self, path)
local adsl = fox_readdir(self, inode.ads)
for i=1, do
if (adsl[i].name == stream) then
local node = fox_getinode(self, adsl[i].inode)
return {node=node, pos=1, mode=mode, dev=self}
end
end
return nil, "not found"
end