os.tmpname

Returns a name for a temporary file

Prototype

s = os.tmpname ()

Description

Returns a string with a name for a temporary file. Considered unsafe in an untrusted environment because someone may substitute a different file for the one whose name is returned to you, in the small window of time between obtaining the file name, and opening the file.

print (os.tmpname ()) --> /temp/s56.2

Lua functions

Topics