Product Site

5.4.8.8. temporaryPath (Class Method)

Returns the full path to the user's temporary directory as a new instance of File.

On Windows this method returns the value of the environment variable TMP, TEMP or USERPROFILE, whichever is defined in this sequence. If none of them are defined it returns the current directory. On Unix-like systems it returns the value of the environment variable TMPDIR, or returns /tmp if TMPDIR is undefined.

See also RexxUtil function SysTempFileName.

Example 5.247. File class — temporaryPath method
say .File~temporaryPath    -- (Windows e.g.) C:\Users\USER~1\AppData\Local\Temp
say .File~temporaryPath    -- (Unix-like system e.g.) /tmp