mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
fix cached file type, and cache whether the filesystem is read only
This commit is contained in:
parent
d0933c9967
commit
5679885592
@ -44,7 +44,7 @@ if px.dirstat then -- use single call for file info
|
|||||||
end
|
end
|
||||||
local ci = statcache["/"..fs.canonical(p)]
|
local ci = statcache["/"..fs.canonical(p)]
|
||||||
if ci then
|
if ci then
|
||||||
return ci[3]
|
return ci[n]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
function px.isDirectory(path)
|
function px.isDirectory(path)
|
||||||
@ -57,4 +57,8 @@ if px.dirstat then -- use single call for file info
|
|||||||
return gce(path, 4) or olm(path)
|
return gce(path, 4) or olm(path)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
local iro = px.isReadOnly()
|
||||||
|
function px.isReadOnly()
|
||||||
|
return iro
|
||||||
|
end
|
||||||
fs.mount(px, lpath)
|
fs.mount(px, lpath)
|
||||||
|
Loading…
Reference in New Issue
Block a user