should be freed with [glib.global.gfree] when not needed any longer and is is in the GLib file name encoding. In case of errors, null is returned and error will be set.
Dir.makeTmp
string makeTmp(string tmpl = null)Creates a subdirectory in the preferred directory for temporary files (as returned by [glib.global.getTmpDir]).
tmpl should be a string in the GLib file name encoding containing a sequence of six 'X' characters, as the parameter to [glib.global.mkstemp]. However, unlike these functions, the template should only be a basename, no directory components are allowed. If template is null, a default template is used.
Note that in contrast to [glib.global.mkdtemp] (and mkdtemp()) tmpl is not modified, and might thus be a read-only literal string.
Parameters
tmpl | Template for directory name, as in [glib.global.mkdtemp], basename only, or null for a default template |
Returns
The actual name used. This string
Throws
[ErrorWrap]