Sorroko / cclite

A cc emulator written in lua
33 stars 17 forks source link

fs.isReadOnly returns nothing #21

Closed gamax92 closed 10 years ago

gamax92 commented 10 years ago

fs.isReadOnly doesn't return anything for anything that isn't in /rom

lua> fs.isReadOnly("rom")
true
lua> fs.isReadOnly("/") -- Expected false
lua> fs.makeDir("tmpdir")
true
lua> fs.isReadOnly("tmpdir") -- Expected false
lua> file = fs.open("tmpfile","w") file.write("stuff") file.close()
lua> fs.isReadOnly("tmpfile") -- Expected false