createTemporaryHTMLFile

fun createTemporaryHTMLFile(fileName: String, dir: Path = KSL.outDir): File(source)

Creates a temporary HTML file in the specified directory with the given file name. The file will have a .html extension. If the directory does not exist, it will be created.

Return

the created temporary HTML file

Parameters

fileName

the name of the file, must not be null

dir

the directory to create the file in, defaults to KSL.outDir, must not be null