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

21 lines
314 B
Lua
Raw Normal View History

2020-06-02 16:23:58 +10:00
function prox:open(path, mode)
local node = fox_getnode(self, path)
if not node then return nil, "file not found" end
return {node=node, pos=1, mode=mode, dev=self}
end
function prox:read(hand, amt)
end
function prox:write(hand, data)
end
function prox:seek(hand, amt)
end
function prox:close(hand)
end