mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 02:28: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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user