Difference between revisions of "Fs.isReadOnly"
From ComputerCraft Wiki
(Got the return values backwards) |
m (Moved to CAT:LuaCoreFunctions) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Revision as of 18:46, 28 November 2012
| Checks whether a path can be written to (the path need not exist in order to perform this test) | |
| Syntax | fs.isReadOnly(string path) |
| Returns | boolean false if path can be written to, or true if not |
| Part of | ComputerCraft |
| API | fs |
Examples
| Checks that the "rom" directory is read-only, as its name implies | |
| Code |
print(fs.isReadOnly("rom"))
|
| Output | true |