apparently read was added to fs.open "r" mode in 2017

This commit is contained in:
kepler155c@gmail.com
2019-12-05 13:44:35 -07:00
parent 1e675a2e35
commit 424fff7842
3 changed files with 9 additions and 1 deletions

View File

@@ -74,6 +74,10 @@ function urlfs.open(node, fn, fl)
if fl == 'r' then
return {
read = function()
ctr = ctr + 1
return c:sub(ctr, ctr)
end,
readLine = function()
if not lines then
lines = Util.split(c)