Luart
Comprehensive Windows framework to develop in Lua
modules > sys > File > readonly

File.readonlyread/write property



The File.readonly property set or get a boolean value indicating if the File is readonly or not. The file must exist physically on the disk.

Example


local file = File("example\\notepad.wlua")
file.readonly = true

-- outputs "true"
print(file.readonly)