Directory createTempSync([String prefix ])

Synchronously creates a temporary directory in this directory. Additional random characters are appended to prefix to produce a unique directory name. If prefix is missing or null, the empty string is used for prefix.

Returns the newly created temporary directory.

Source

Directory createTempSync([String prefix]);