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

File.temporaryread/write property



The File.temporary property set or get a boolean value indicating if the File is considered temporary or not (meaning that cache data will not be written to disk once the File is closed). The file must exist physically on the disk.

Example


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

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