touch

abstract fun touch(path: String): Path

Creates an empty file in this workspace at the given path.

Return

Path to the created file.

Parameters

path

Relative path at which the empty file will be created.

If this path includes subdirectories, those subdirectories will be created if they do not already exist.