fs.isReadOnly
From ComputerCraft Wiki
| 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 true if path can be written to, or false 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 |