file

infix fun File.file(path: String): File

Creates a file at the given path relative to this file or a specified root directory.

Receiver

The starting file or the root directory (optional).

Return

The created file.

Parameters

path

The path of the file to create.