Package: glib

Function g-tmp-dir

Lambda List

g-tmp-dir ()

Return Value

A string with the directory to use for temporary files.

Details

Gets the directory to use for temporary files. This is found from inspecting the environment variables TMPDIR, TMP, and TEMP in that order. If none of those are defined "/tmp" is returned on UNIX and "C:\" on Windows. The encoding of the returned string is system-defined. On Windows, it is always UTF-8. The return value is never nil or the empty string.
 

See also

2020-10-24