FileUtils.mkdtemp

Creates a temporary directory. See the mkdtemp() documentation on most UNIX-like systems. The parameter is a string that should follow the rules for mkdtemp() templates, i.e. contain the string "XXXXXX". g_mkdtemp() is slightly more flexible than mkdtemp() in that the sequence does not have to occur at the very end of the template and you can pass a mode and additional flags. The X string will be modified to form the name of a directory that didn't exist. The string should be in the GLib file name encoding. Most importantly, on Windows it should be in UTF-8. Since 2.30

class FileUtils
static
string
mkdtemp
(
string tmpl
)

Parameters

tmpl string

template directory name. [type filename]

Return Value

Type: string

A pointer to tmpl, which has been modified to hold the directory name. In case of errors, NULL is returned and errno will be set.

Meta