touch

Creates a file at path if it does not exist. Returns false if file already exists, otherwise true.

common
fun touch(path: String): Boolean
fun touch(path: String): Boolean
fun touch(pathComponent: PathComponent): Boolean
fun touch(path: String): Boolean
fun touch(pathComponent: PathComponent): Boolean

Creates a file at pathComponent if it does not exist. Returns false if file already exists, otherwise true.

common
fun touch(pathComponent: PathComponent): Boolean