fix cached file type, and cache whether the filesystem is read only

This commit is contained in:
Izaya 2020-10-14 17:20:12 +11:00
parent d0933c9967
commit 5679885592
1 changed files with 5 additions and 1 deletions

View File

@ -44,7 +44,7 @@ if px.dirstat then -- use single call for file info
end
local ci = statcache["/"..fs.canonical(p)]
if ci then
return ci[3]
return ci[n]
end
end
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)
end
end
local iro = px.isReadOnly()
function px.isReadOnly()
return iro
end
fs.mount(px, lpath)