createTempFile

fun createTempFile(prefix: String, suffix: String): Path

Creates an empty file with the given prefix and suffix.

The file will be automatically removed after the test class completes successfully. The test should close any file handles that would prevent the folder from being removed.


fun createTempFile(): Path

Creates an empty temporary file.

See also

.createTempFile