tempDir


Description:

public static Path? tempDir (string prefix)

Creates a temporary directory and returns its path.

Example:

    var tmpDir = Files.tempDir ("myapp");
if (tmpDir != null) {
// use tmpDir.toString () as temporary workspace
}

Parameters:

prefix

the prefix for the temporary directory name.

Returns:

a Path to the created temporary directory, or null on error.