key: os.tmpfile name: os.tmpfile api: string os.tmpfile(opt_or_key) version: 2.0.1
Used to get a temporary file path, just a path, the file needs to be created by itself.
local tmp1 = ${link os.tmpfile}("xxx")
local tmp2 = ${link os.tmpfile}({key = "xxx", ramdisk = false})
Valid fields for opt are:
string keybool ramdisk, default value is true