Creates a temporary directory and returns its path.
Example:
var tmpDir = Files.tempDir ("myapp");
if (tmpDir != null) {
// use tmpDir.toString () as temporary workspace
}
| prefix |
the prefix for the temporary directory name. |
|
a Path to the created temporary directory, or null on error. |