File.readonly read/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)