forked from izaya/OC-PsychOS2
made unionfs read correctly
This commit is contained in:
parent
6dfb34bb72
commit
c78bb7b32c
@ -20,6 +20,10 @@ function unionfs.create(...)
|
|||||||
return paths[1].."/"..path
|
return paths[1].."/"..path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function proxy.setLabel()
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
|
||||||
function proxy.spaceUsed()
|
function proxy.spaceUsed()
|
||||||
return fs.spaceUsed(paths[1])
|
return fs.spaceUsed(paths[1])
|
||||||
end
|
end
|
||||||
@ -35,6 +39,9 @@ function unionfs.create(...)
|
|||||||
function proxy.lastModified(path)
|
function proxy.lastModified(path)
|
||||||
return fs.lastModified(realpath(path))
|
return fs.lastModified(realpath(path))
|
||||||
end
|
end
|
||||||
|
function proxy.getLabel()
|
||||||
|
return fs.getLabel(paths[1])
|
||||||
|
end
|
||||||
|
|
||||||
function proxy.exists(path)
|
function proxy.exists(path)
|
||||||
return fs.exists(realpath(path))
|
return fs.exists(realpath(path))
|
||||||
@ -91,7 +98,9 @@ function unionfs.create(...)
|
|||||||
if not fids[fid] then
|
if not fids[fid] then
|
||||||
return false, "file not open"
|
return false, "file not open"
|
||||||
end
|
end
|
||||||
return fids[fid]:read(d)
|
local rb = fids[fid]:read(d)
|
||||||
|
if rb == "" then rb = nil end
|
||||||
|
return rb
|
||||||
end
|
end
|
||||||
function proxy.seek(fid,d)
|
function proxy.seek(fid,d)
|
||||||
if not fids[fid] then
|
if not fids[fid] then
|
||||||
|
Loading…
Reference in New Issue
Block a user