api / org.gradle.api / Task / getTemporaryDir

getTemporaryDir

@Internal abstract fun getTemporaryDir(): File

Returns a directory which this task can use to write temporary files to. Each task instance is provided with a separate temporary directory. There are no guarantees that the contents of this directory will be kept beyond the execution of the task.

Return
The directory. Never returns null. The directory will already exist.